[Objectbridge-jdo-dev] JDO spec mapping to db tables
Brought to you by:
thma
From: <tr...@th...> - 2002-05-08 16:19:06
|
I can't seem to find any information on how JDO is supposed to map classes = and class fields to tables and table columns. =20 Anyone know the answer to this? The XML example in the spec: <?xml version=3D=941.0=94 encoding=3D=94UTF-8=94?> <!DOCTYPE jdo SYSTEM =93jdo.dtd=94> <jdo> <package name=3D=94com.xyz.hr=94> <class name=3D=94Employee=94 identity-type=3D=94application=94 objectidclas= s=3D=94 EmployeeKey=94> <field name=3D=94name=94 primary-key=3D=94true=94> <extension vendor-name=3D=94sunw=94 key=3D=94index=94 value=3D=94btree=94/> </field> <field name=3D=94salary=94 default-fetch-group=3D=94true=94/> <field name=3D=94dept=94> <extension vendor-name=3D=94sunw=94 key=3D=94inverse=94 value=3D=94emps=94/= > </field> <field name=3D=94boss=94/> </class> <class name=3D=94Department=94 identity-type=3D=94application=94 objectidcl= ass=3D=94 DepartmentKey=94> <field name=3D=94name=94 primary-key=3D=94true=94/> <field name=3D=94emps=94> <collection element-type=3D=94Employee=94> <extension vendor-name=3D=94sunw=94 key=3D=94element-inverse=94 value=3D=94= dept=94/> </collection> </field> </class> </package> </jdo> Travis |