- This topic has 5 replies, 3 voices, and was last updated 19 years ago by
Riyad Kalla.
-
AuthorPosts
-
GhazalawahidMemberI am following the hiberante quickstart. While customizing hibernate.cfg.xml ,after adding JDBC Driver to the classpath,when i map the files ,its not showing any tables from schema,just displaying SessionManager.java. I am using JDBC OBBC BRIDGE(MS Access) Database.
Riyad KallaMemberDo you mean after clicking “Finish”, you expect to see something, but instead are just staring at the SessionManager source code?
If you check your source directory, the mapping files (hbm.xml) should have been created.
GhazalawahidMemberI am at the step of quickstart where it ask to select url,dialect (Hibernate configuration screen). i also did not find any matching dialect for ODBC data source.When i click add to map tables ,it displays only SessionManager.java whereas in quickstart its displaying tables e.g Bonus,etc.
Brian FernandesModeratorHi,
The Add button in the hibernate configuration editor does not reverse engineer tables in from database. All it does is allow you to add existing mapping files to your configuration.
This is mentioned in section 5.3, figure 8.To reverse engineer tables, you have to open up a connection in the DB browser, and use the “Create Hibernate Mapping” context menu option available when you right click on a table.
Details of this process are present in section 5.4.Let us know if you require further clarification,
Best,
Brian.
GhazalawahidMemberHi,
Thanks for help.Now i have another problem.I am writing Test client as in quickstart,but when i type import net.sf.hibernate.*,it says cannot resolve to a type.Its also not displaying file name when i type net.sf. ,instead its displaying net.sf.ehcache.hibernate.*
Riyad KallaMemberYou probably added Hibernate3 capabilities, in which case the package hierarchy is org.hibernate.*, it is no longer net.sf.*
-
AuthorPosts