-->
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.  [ 4 posts ] 
Author Message
 Post subject: SchemaExportTask and AnnotationConfiguration
PostPosted: Wed Apr 04, 2007 1:46 pm 
Newbie

Joined: Wed Apr 04, 2007 1:37 pm
Posts: 6
Hibernate version:
3.2.3, Annotations 3.3.0

I'm currently trying to port my XDoclet-based Hibernate annotations to Hibernate Annotations.

I'm running into an issue with the SchemaExportTask Ant task that I use to generate my DDL.

I get the error message: "Schema text failed: An AnnotationConfiguration instance is required to use <mapping class="com.abc.blah.Blah"/>

Sure enough, the source of the SchemaExportTask is hard-coding the creation of the Configuration instance in its getConfiguration() method. There does not appear to be any way to override this.

Are there any plans to add support for AnnotationConfiguration to the SchemaExportTask?

Thanks,
Andrew Kerr


Top
 Profile  
 
 Post subject:
PostPosted: Thu Apr 12, 2007 4:53 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
you need to use the task available in tools.hibernate.org

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 13, 2007 12:49 pm 
Newbie

Joined: Wed Apr 04, 2007 1:37 pm
Posts: 6
Thanks very much for your response. Are the older schema-related tasks that come with Hibernate Core considered obsolete? If so, perhaps that could be indicated in the documentation.

I guess we will wait until Tools comes out of beta to upgrade to Annotations, as we need this schema export functionality.

Thanks,
Andrew


Top
 Profile  
 
 Post subject:
PostPosted: Mon Apr 16, 2007 2:31 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
it is not obsolete, it works fine for Hibernate Core. Max added a warning recently I think

_________________
Emmanuel


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