Hello,
I have used Hiberate Tools 3.1 beta 4 eclipse plugin to generate hbm.xml and .java out of my current DB. Some tables (e.g. RegionText) have composite-id and corresponding class (RegiontextId.java) are generated successfully.
But after I add generated .hbm.xml (e.g. Regiontext.hbm.xml) to the Console Configurtion, I got following error:
sessionfactory error: component class not found: RegiontextId.
I don't have package for my classes. all .hbm.xml, .java, and .class file are all in the top level dir /testHib, and eclipse is happey with them. I noticed that when I expand the Configuration node in the "Hibernate Configuration" view, I see Regiontext, but not the generated and compiled RegiontextId.
Why is RegiontextId not picked up? I treid to add the top dir /testHib onto the Console Configuration's classpath section, but then I got NPE with I try to refresh/expend root node in the "Hibernate Configuration" view.
Can someone tell me what's the rigth way to do this?
I want to get this working, so I can use the HQL prototype facility from eclipse plugin.
Thx,
Chuck
|