-->
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.  [ 2 posts ] 
Author Message
 Post subject: Hibernate Tools with JPA 2.0 Annotations
PostPosted: Thu Apr 08, 2010 8:47 am 
Newbie

Joined: Sun Feb 14, 2010 10:13 am
Posts: 17
Is current production version of Hibernate Tools (3.2.4.GA) supposed to support JPA 2.0 Annotations?
Because it couldn't recognize the @ElementCollection annotation, for instance..

Yuval


Top
 Profile  
 
 Post subject: Re: Hibernate Tools with JPA 2.0 Annotations
PostPosted: Fri Apr 09, 2010 10:18 am 
Newbie

Joined: Thu Aug 07, 2008 12:03 pm
Posts: 16
I have exactly the same problem. I cannot generate my schema anymore because it doesn't detect @ElementCollection and therefore cannot map collections.

Is there any alternative to hibernate tools out there for this purpose? (generating the schema)

EDIT: After further tests, it turns out that it DOES work with latest version of Hibernate Tools. If you use Maven, make sure you include the dependence

Code:
      
<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-tools</artifactId>
<version>3.2.4.GA</version>
<type>jar</type>
<scope>runtime</scope>
</dependency>


And If you want to generate the schema using Maven... forget about it, if anything, use antrun:run and from there call the hibernatetool task.


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