-->
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.  [ 9 posts ] 
Author Message
 Post subject: How to configure SchemaExport in Eclipse plugin
PostPosted: Wed May 14, 2008 11:03 pm 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
I just started using the Hibernate eclipse plugins version 3.2.1.GA. I am able to select "Run SchemaExport" from the "Hibernate Configurations" view and it generates the correct schema in my database. The only question I have is how do I configure SchemaExport to generate a DDL file instead.


Top
 Profile  
 
 Post subject: Re: How to configure SchemaExport in Eclipse plugin
PostPosted: Thu May 15, 2008 4:29 am 
Newbie

Joined: Thu May 15, 2008 3:51 am
Posts: 2
Have you read this :
http://docs.jboss.org/tools/2.0.0.GA/hibernatetools/en/html/ant.html


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 6:56 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
try the latest beta release in jboss tools - it exposes a configurable schema exporter/update.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 6:57 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
try the latest beta release in jboss tools - it exposes a configurable schema exporter/update.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 9:52 am 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
Ok, I have now installed JBoss Tools 3.2.2.CR1, but I still don't see a way to configure SchemaExport - checked in Eclipse Preferences window as well as in Hibernate Console Configuration window. Can you give me a hint on where I should look?


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 10:47 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
Run > Hibernate Code generation

select the schema exporter (hbm2ddl)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 15, 2008 12:16 pm 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
Ok, did that. I am now getting the following exception:

Code:
org.hibernate.console.HibernateConsoleRuntimeException: Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
Received a NoClassDefFoundError, probably the console configuration classpath is incomplete or contains conflicting versions of the same class
  java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
  org/apache/tools/ant/BuildException
    java.lang.NoClassDefFoundError: org/apache/tools/ant/BuildException
    org/apache/tools/ant/BuildException


I tried putting ant.jar in my project classpath as well as in my Console Configuration classpath, but that didn't help.

P.S. Other code generation (such as java and hbm.xml files) from the console is working fine.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 17, 2008 1:50 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
that looks like a big regression bug. Please report that in jira - ant build exception shuold not be loaded ever in this.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 17, 2008 10:10 am 
Regular
Regular

Joined: Sun Sep 25, 2005 11:35 pm
Posts: 57
JIRA issue created: JBIDE-2232


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