Hi guys, I've a AndroMDA project with annotated ejb3 class, but I cannot configure HiberanteTool
These are the sptes that I followed: 1) created a projet H8tool 2) created an hibernate.cfg.xml (in bottom the source) 3) in HibernateTool I created a newConfiguration, with "AddConfiguration" menu 4) In configuration: - I set DB-Connection - configuration file with hibernate.cfg.xml - classpath where I've add the project where I've the annotated class by androMDA
When I run a simple criteria query ie: session.createCriteria(com.packageName.MyCar.class).list() the result is 0 (zero records), but in table corresronding to MyCar.class there are many records.
Have u any Idea????
The hibernate.cfg.xml source
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE hibernate-configuration PUBLIC "-//Hibernate/Hibernate Configuration DTD 3.0//EN" "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd"> <hibernate-configuration> <session-factory name="Postgesql_dbName"> <property name="hibernate.connection.driver_class">org.postgresql.Driver</property> <property name="hibernate.connection.url">jdbc:postgresql://127.0.0.1:5432/dbName</property> <property name="hibernate.connection.username">username</property> <property name="hibernate.connection.password">password</property> <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property> <property name="hibernate.show_sql">true</property> <property name="hibernate.format_sql">true</property> </session-factory> </hibernate-configuration>
|