There was an error in this gadget

Tuesday, September 25, 2012

Eclipse helios hibernate plugins URL

Eclipse helios hibernate plugins URL

 Latest Stable Release -

Steps : filter by hibernate and select all hibernate tools , say next.

After installing the plugin cross check in  by selecting the new project -> others
Add caption

Steps to generate the Entities or Hbm files.

Step1 : create the normal java project and then right click on project -> new project - > others-> select the console configuration
Add this file hibernate.cfg.xml in classpath of the project

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE hibernate-configuration PUBLIC
        "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
        <property name="hibernate.session_factory_name">MySessionFactory</property>
        <property name="hibernate.connection.driver_class">
        <property name="current_session_context_class">thread</property>
        <property name="hibernate.connection.url">jdbc:mysql://</property>
        <property name="hibernate.connection.username">root</property>
        <property name="hibernate.connection.password">password</property>
        <property name="hibernate.connection.pool_size">10</property>
        <property name="show_sql">true</property>
        <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
        <property name="">update</property>
        <property name="hibernate.query.factory_class">org.hibernate.hql.classic.ClassicQueryTranslatorFactory</property>
        <!-- Mapping files -->

Click next

By default configuration file will be selected

For Database connection select has new

Select a db u required and click next

after that click finish

Reverse engineering step.

No comments:

Post a Comment