I use an XSD to generate my Java classes via JAXB. The only thing you would need to remember is that an XSD represents XML, which maps nicely to OO, but to get it to a state that Hibernate can work nicely with, you should add in the Relational elements if you are mapping to a RDMS, and of course, because of this, you need to make sure you do the child.setParent()'s yourself when you unMarshall, and inversely, do child.setParent(null) when you want to Marshall, otherwise you'll get stack overflow exceptions due to circular references.
Anyway, as Christian said, Hibernate is more to do with the datalayer.
-G
|