Hibernate Books

All times are UTC - 5 hours [ DST ]

Post new topic Reply to topic  [ 1 post ] 
Author Message
 Post subject: HibernateTool with annotated class by AndroMDA
PostPosted: Mon Feb 13, 2012 9:31 am 

Joined: Mon Feb 13, 2012 9:16 am
Posts: 1
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:
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"
<session-factory name="Postgesql_dbName">
<property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
<property name="hibernate.connection.url">jdbc:postgresql://</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>

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 1 post ] 

All times are UTC - 5 hours [ DST ]

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.