-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: HibernateTool with annotated class by AndroMDA
PostPosted: Mon Feb 13, 2012 9:31 am 
Newbie

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:
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>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 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.