Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Reverse enginerring not creating object into POJO

 
Ish Fad
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic