-->
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: Using hbm2ddl with hibernate config'ed for JCA in JBoss
PostPosted: Sat Aug 28, 2004 12:15 pm 
Newbie

Joined: Sat Aug 28, 2004 11:49 am
Posts: 4
Location: Amsterdam
Hi,

I'm new to Hibernate but figured after reading the draft EJB 3.0 I should learn a lot more about it!

It's been pretty easy to get going, and seems a lot faster at higher loads than EJB 2.0 entities :), but there's a level of automation in development that I sorely miss.

I'm using JBoss 3.2.x and up to now was using CMP/CMR. What was very useful with JBoss CMP was to be able to exclusively use XDoclet, and completely ignore the schema during early development, and just let JBoss CMP create/drop the tables.

Since I've got Hibernate 2 configured for JCA, I can't figure out how to set the hbm2ddl.auto property to create-drop (I am guessing it really does do the same job) since that's not a supported attribute of the hibernate JMX service.

The basic structure of the app deployment is:
Code:
myapp.ear
    meta-inf
         application.xml
         jboss-app.xml
    hibernate.sar
         */*.hbm.xml
         meta-inf
               jboss-service.xml
    session-ejb-*.jar
    pojo-hbm-*.jar
    webapp-*.war

I tried dropping a hibernate.cfg.xml in both hibernate.sar and hibernate.sar/meta-inf to specify the additional hibernate.hbm2ddl.auto property I think I need, but with no success.

Any pointers would be most welcome.

Thank you
/k1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 1:23 pm 
Newbie

Joined: Sat Aug 28, 2004 11:49 am
Posts: 4
Location: Amsterdam
Am I missing something from the docs/forums? I have scanned for the answer for 2 days but found no answer. I can't believe I'm the first person to try to do this. If I'm being dumb I'd accept that. Does anyone have any kind of pointer would help me!

/k1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 30, 2004 8:29 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
This is probably not really supported in JCA adaptor at the moment.

Usually, its better to use JMX for JBoss integration.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Sep 05, 2004 8:52 am 
Newbie

Joined: Sat Aug 28, 2004 11:49 am
Posts: 4
Location: Amsterdam
I just moved to JBoss 3.2.6 (using a HAR instead) and all my prayers were answered.

/k1


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.