I am attempting to use the Configuration and Mappings object
in a Java class so that I don't use hibernate.cfg.xml and Object.hbm.xml
files. I want the contents in memory from Java code, not the XML files.
Ie. I DO want to hard code everything.
I know about what the tutorial says at
http://www.hibernate.org/hib_docs/v3/re ... ogrammatic
however, it doesn't explain how to program the equivalent of both files.
I see how to program an Hibernate.cfg.xml.
Could someone kindly advise/point me in the right direction
for programming of an Object.hbm.xml in java code?
In other terms, how do I successfully relate in what
one sees, in, say:
//*********************************************************88
- <hibernate-mapping>
- <class name="events.Person" table="PERSON">
- <id name="id" column="PERSON_ID">
<generator class="native" />
</id>
<property name="age" />
<property name="firstname" />
<property name="lastname" />
</class>
</hibernate-mapping>
//*********************************************************88
by programming with the Mappings class, and any other(s)?
Happy new Year!
:)