Description: How to use Myeclipse generate a map file and the entity class?
Mapping file and entity class "=== ===" DB
1) How to generate entity classes based on DB and mapping files
Myeclipse additional use Hibernate framework ========= ========
a. first in the DB Browser window to establish a connection to the database
b. a new project, the project name right point-> Myeclipse-> Add Hibernate ....
c. Select the Hibernate framework version
d. generating Hibernate.cfg.xml file
e. Setting Hibernate.cfg.xml connection parameters
f. generate HibernateSessionFactory tools (HibernateUtil)
To Search:
File list (Check if you may need any files):
hibernate04
...........\.classpath
...........\.myeclipse
...........\.myhibernatedata
...........\.mymetadata
...........\.project
...........\hibernate.reveng.xml
...........\hibernate_04.txt
...........\src
...........\...\hibernate.cfg.xml
...........\...\tarena
...........\...\......\dao
...........\...\......\entity
...........\...\......\......\Category.hbm.xml
...........\...\......\......\Category.java
...........\...\......\......\Product.hbm.xml
...........\...\......\......\Product.java
...........\...\......\......\Project.hbm.xml
...........\...\......\......\Project.java
...........\...\......\test
...........\...\......\....\TestJunit.java
...........\...\......\....\TestManyToMany.java
...........\...\......\....\TestProject.java
...........\...\......\util
...........\...\......\....\HibernateSessionFactory.java
...........\WebRoot
...........\.......\index.jsp
...........\.......\META-INF
...........\.......\........\MANIFEST.MF
...........\.......\WEB-INF
...........\.......\.......\classes
...........\.......\.......\.......\hibernate.cfg.xml
...........\.......\.......\.......\tarena
...........\.......\.......\.......\......\dao
...........\.......\.......\.......\......\entity
...........\.......\.......\.......\......\......\Category.class
...........\.......\.......\.......\......\......\Category.hbm.xml
...........\.......\.......\.......\......\......\Product.class
...........\.......\.......\.......\......\......\Product.hbm.xml
...........\.......\.......\.......\......\......\Project.class
...........\.......\.......\.......\......\......\Project.hbm.xml
...........\.......\.......\.......\......\test
...........\.......\.......\.......\......\....\TestJunit.class
...........\.......\.......\.......\......\....\TestManyToMany.class
...........\.......\.......\.......\......\....\TestProject.class
...........\.......\.......\.......\......\util
...........\.......\.......\.......\......\....\HibernateSessionFactory.class
...........\.......\.......\lib
...........\.......\.......\...\mysqldriver.jar
...........\.......\.......\web.xml