Author | Message |
---|---|
KateDehbashi
Posts: 3
|
Posted 00:17 Oct 21, 2009 |
If the hbm2dll ant doesn't create the database statement for a particlar table in the csns.dll file, what could be the problem? I've created a test class under csns.model just to find out if the hbm2dll works fine but it doesnt seem to create any new tables. [Attachments deleted by cysun] Last edited by cysun at
10:11 Oct 21, 2009.
|
Sanaz_6101
Posts: 40
|
Posted 00:27 Oct 21, 2009 |
there is another file which is called : hibernate.cgf.xml under cfg folder you need to map your hbm files from there for example : <mapping resource="hbm/assignment/Assignment.hbm.xml" /> you can also see the source code inside hibernate.cgf.xml and see how the mapping works |
Sanaz_6101
Posts: 40
|
Posted 00:28 Oct 21, 2009 |
|
cysun
Posts: 2935
|
Posted 10:10 Oct 21, 2009 |
First of all, as Sanaz said, check if you added the mapping to hibernate.cfg.xml. Secondly, do not post source code files - it's considered cheating. |