*
The moose likes Object Relational Mapping and the fly likes Reverse enginerring not creating object into POJO Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Reverse enginerring not creating object into POJO" Watch "Reverse enginerring not creating object into POJO" New topic
Author

Reverse enginerring not creating object into POJO

Ish Fad
Greenhorn

Joined: Aug 09, 2011
Posts: 4
I am using MYSQL Database.
I having problem adding object to POJO (Class created by Hibernate reverse engineering).
I have two tables customer and title. I have created One-to-Many relationship in MYSQL between this two tables.
titleId is foreign key in customer table. so one to many relation exist.
Here is my hibernate-reverse-engineering file.



JAVA object it created



I don't understand why it is creating titleId as integer. It suppose to be object for table sTitle.

Please can someone help me.

Many thanks

[Fixed code tags - Matthew]
mm dv
Greenhorn

Joined: Jun 10, 2012
Posts: 1
Hi,
I see that there have been no replies on this thread for a long time. I am having the exact same problem now. Please let me know if you were able to find a fix.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Reverse enginerring not creating object into POJO