Hello,
I am new in Hibernate 3 and Hibernate tools, I am using Hibernate 3.2.0 and derby 10.2.2 with hibernate tools in JBOSSIDE for Eclipse.......my problem is in the Hibernate Code Generation, when I want to generate my classes *.java and *.hbm.xml from my derby database, Hibernate tools generate them but it does not have any foreign key association, for example I have two tables with one-to-many relation, For example Country and City, a country can have many cities, so id_country is a foreign key in city (but not primary), and city has its own id_city, both integer, when I select the options in the Hibernate Code Generation, it generates my classes but with non relation between the 2 tables......... it puts on the City.hbm.xml and City.java the column id_country as an Integer and not as an Entity.....................I am desperate please somebody help me.........What should I do? or what am I doing wrong? I'm new in this....Thanks.................
|