<?xml version="1.0" encoding="utf-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
	<title type="html"><![CDATA[Forum PostgreSQL - Tworzenie struktury z pliku xsd]]></title>
	<link rel="self" href="http://forum.postgresql.org.pl/extern.php?action=feed&amp;tid=449&amp;type=atom"/>
	<updated>2010-06-09T05:58:38Z</updated>
	<generator>PunBB</generator>
	<id>https://forum.postgresql.org.pl/viewtopic.php?id=449</id>
		<entry>
			<title type="html"><![CDATA[Tworzenie struktury z pliku xsd]]></title>
			<link rel="alternate" href="https://forum.postgresql.org.pl/viewtopic.php?pid=2071#p2071"/>
			<content type="html"><![CDATA[Witam,

Mam problem z wygenerowaniem pliku ddl zawierającą strukturę tabel. Posiadam plik xsd, który zawiera strukturę fizyczną tabel. Przy pomocy narzędzie Enterprise Architect oraz funkcji Transform Current Package, a następnie funkcji Generate Package DDL wygenerowałem strukturę tabel, FK, PK itp. Mam jedynie problem z typami ENUM. Nie jestem w stanie wygenerować pliku ddl dla tych typów. Czy ktoś z Was mógłby mnie wspomóc, jakiego może innego narzędzia użyć? Poniżej zamieszczam wzór w jakim przechowywane są takie typy.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
	<xs:simpleType name="Rodzaj">
		<xs:annotation>
			<xs:documentation>1 - rodzaj1,
					  2 - rodzaj2 </xs:documentation>
		</xs:annotation>
		<xs:restriction base="xs:string">
			<xs:enumeration value="rodzaj1">
				<xs:annotation>
					<xs:documentation>Pierwszy rodzaj</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
			<xs:enumeration value="rodzaj2">
				<xs:annotation>
					<xs:documentation>Drugi rodzaj</xs:documentation>
				</xs:annotation>
			</xs:enumeration>
		</xs:restriction>
	</xs:simpleType>
</xs:schema>]]></content>
			<author>
				<name><![CDATA[golooo]]></name>
				<uri>https://forum.postgresql.org.pl/profile.php?id=1115</uri>
			</author>
			<updated>2010-06-09T05:58:38Z</updated>
			<id>https://forum.postgresql.org.pl/viewtopic.php?pid=2071#p2071</id>
		</entry>
</feed>
