Extract Hibernate tools and copy the contents of the plugins directory into the eclipse/plugins directory. Now re/start eclipse and right click on project. Select New->Other->Hibernate. You will see the following options:
1. Hibernate Configuration File (cfg.xml)
2. Console Configuration
3. Hibernate Artifact Generation
Run these wizards in the above sequence.
NOTE:
1. hibernate.jar file should not be included in 'Console Configuration'. The Hibernate Tool has its own hibernate.jar file.
2. Copy the database driver jar file into the project and make it available in your classpath. This is needed in 'Console Configuration'.
3. If your schema has a lot of tables, you may get an insufficient memory exception:
Error under artifact generation
Reason:
java.lang.OutOfMemoryError:Java heap space
In that case you try allocating more memory to Eclipse/WSAD:
C:\Jboss-Eclipse\eclipse\eclipse.exe -vmargs -Xms750M -Xmx750M
Please refer to the Hibernate tools documentation for further details.
Subscribe to:
Post Comments (Atom)
Blog Archive
-
▼
2008
(17)
-
▼
February
(17)
- HTML to Excel with JSP
- Basic JDBC: Executing a simple SELECT statement
- Hibernate 3.0 config file with database URL
- Hibernate 3.0 config file with JNDI datasource
- Hibernate mapping file
- org.hibernate.StaleObjectStateException
- Hibernate Tool - Reverse Engineering
- Generic toString() using reflection
- SWT - Browser
- SWT - Tree, Composite, Group, Tab, Popup Menu
- SWT - Slider, Scale, Progress, Combo, Menu, ToolBa...
- SWT - Label, Text, Button, List, Table
- Struts step-by-step
- JavaScript to select all checkboxes
- Fixed header in a datagrid
- Log4J 1.3 RollingFileAppender
- HowTo - GCJ: A native Java Compiler
-
▼
February
(17)
No comments:
Post a Comment