Quote:
hmm...if you are breaking the rules in the DTD you are just lucky hbm2java does not caugh up upon this....(
no, table is implied! Look at the DTD:
Code:
<!ELEMENT class (
meta*,
(cache|jcs-cache)?,
(id|composite-id),
discriminator?,
(version|timestamp)?,
(property|many-to-one|one-to-one|component|dynamic-component|any|map|set|list|bag|idbag|array|primitive-array)*,
((subclass*)|(joined-subclass*))
)>
<!ATTLIST class name CDATA #REQUIRED>
<!ATTLIST class table CDATA #IMPLIED>
ID is not implied, but the Name and Type are !
Code:
<!ELEMENT id (meta*, column*, generator)>
<!ATTLIST id name CDATA #IMPLIED>
<!ATTLIST id access CDATA #IMPLIED>
<!ATTLIST id column CDATA #IMPLIED>
<!ATTLIST id type CDATA #IMPLIED>
<!ATTLIST id length CDATA #IMPLIED>
<!ATTLIST id unsaved-value CDATA "null">
so I can create a void ID... well I supposed that the intention was just map non persistent classes too :)
Do you think I'm forcing Hibernate ? Them I will consider building a template for file+Xdoclet too :'(