-->
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.  [ 3 posts ] 
Author Message
 Post subject: Query by Example in JPA and AutoDDL Generation
PostPosted: Thu Aug 17, 2006 12:32 pm 
Newbie

Joined: Fri Dec 30, 2005 12:47 pm
Posts: 11
Hibernate version:
3.2cr2

Hi everyone..

I starting to learn EJB3 JPA, and i using Hibernate as persistence provider, how can i execute a QBE in JPA or mixing native QBE with JPA??

On the othe hand, how autogenerate database table from annotated entities?

i tried with JPA and netbeans 5.5 beta 2 and works perfectly, but when i tried with native hibernate 3.2 (cfg.xml) and hibernate-annotations dont work..

And a last question, if i use native hibernate 3.2 (cfg.xml) and hibernate-annotations can i use javax.persistence.* annotation or is requeried use org.hibernate.annotations.* ???


Thanks...

PD: Sorry my english


Top
 Profile  
 
 Post subject: Re: Query by Example in JPA and AutoDDL Generation
PostPosted: Fri Aug 18, 2006 6:18 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Marioko wrote:
I starting to learn EJB3 JPA, and i using Hibernate as persistence provider, how can i execute a QBE in JPA or mixing native QBE with JPA??

( (Sesison) entityManager.getDeletage() ).createCriteria(...);
Quote:
On the othe hand, how autogenerate database table from annotated entities?

same as hibernate core, by using the hbm2ddl property. Check the reference documentations.

Quote:
i tried with JPA and netbeans 5.5 beta 2 and works perfectly, but when i tried with native hibernate 3.2 (cfg.xml) and hibernate-annotations dont work..

it should :-) download Caveat Emptor, there is a working example.

Quote:
And a last question, if i use native hibernate 3.2 (cfg.xml) and hibernate-annotations can i use javax.persistence.* annotation or is requeried use org.hibernate.annotations.* ???

yes, hibernate annotations complement the EJB 3 ones

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Sat Aug 19, 2006 9:19 pm 
Newbie

Joined: Fri Dec 30, 2005 12:47 pm
Posts: 11
very, very, very, very thanksss


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

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.