-->
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.  [ 6 posts ] 
Author Message
 Post subject: enable auto DDL export for JMX MBean
PostPosted: Thu Jan 27, 2005 7:11 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
Hibernate version:2.1

The auto DDL export, which is be accessable from hibernate.properties/hibernate.cfg.xml :

<property name="hibernate.hbm2ddl.auto">create</property>
<property name="hibernate.hbm2ddl.auto">create-drop</property>
<property name="hibernate.hbm2ddl.auto">update</property>

i need attribute name of this property in jboss-service.xml
like.....

<attribute name="?????????">???????</attribute>


Top
 Profile  
 
 Post subject:
PostPosted: Thu Jan 27, 2005 7:39 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
createSchema and dropSchema


Top
 Profile  
 
 Post subject: enable auto DDL export for JMX MBean
PostPosted: Thu Jan 27, 2005 8:03 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
michael wrote:
createSchema and dropSchema


did you mean
<attribute name=createSchema>true</attribute>
<attribute name=dropSchema>true</attribute>

_________________
sHeRiN
thanks for your ratings ...... :)


Top
 Profile  
 
 Post subject: enable auto DDL export for JMX MBean
PostPosted: Thu Jan 27, 2005 8:23 am 
Regular
Regular

Joined: Tue Dec 14, 2004 5:21 am
Posts: 104
Location: india
michael wrote:
createSchema and dropSchema
<server>

Heres my jboss-service.xml

<mbean code="net.sf.hibernate.jmx.HibernateService" name="jboss.jca:service=Hibe
rnateFactory,name=HibernateFactory">
<depends>jboss.jca:service=RARDeployer</depends>
<!-- Make it deploy ONLY after DataSource had been started -->
<depends>jboss.jca:service=LocalTxCM,name=GossipDS</depends>
<attribute name="MapResources">mappings/LogMessage.hbm.xml</attribute>
<attribute name="JndiName">java:/hibernate/GossipHibernate</attribute>
<attribute name="Datasource">java:/GossipDS</attribute>
<attribute name="Dialect">net.sf.hibernate.sql.PostgreSQLDialect</attribute>
<attribute name="TransactionStrategy">net.sf.hibernate.transaction.JTATransa
ctionFactory</attribute>
<attribute name="TransactionManagerLookupStrategy">
net.sf.hibernate.transaction.JBossTransactionManagerLookup
</attribute>
<attribute name="CacheProvider">net.sf.hibernate.cache.HashtableCacheProvide
r</attribute>
<attribute name="UseOuterJoin">true</attribute>
<attribute name="ShowSql">true</attribute>
<attribute name="AutoCreateSchema">true</attribute> //MY PROBLEM
<!--<attribute name="UserTransactionName">java:/UserTransaction</attribute>-->
</mbean>


i need to have a valid attribute for "hibernate.hbm2ddl.auto" property in the above xml.

if its not possible how can i do that other way, like createSchema, updateSchema in HibernateServiceMbean....

please explain....

_________________
sHeRiN
thanks for your ratings ...... :)


Top
 Profile  
 
 Post subject: hbn2ddlauto
PostPosted: Mon Aug 15, 2005 11:24 am 
Newbie

Joined: Mon Aug 15, 2005 11:16 am
Posts: 14
I have the same problem, I tried to export the schema using
<attribute name="Hbm2ddlAuto">create-drop</attribute>
but the error message says that it cannot find the attribute for
Hbm2ddlAuto.

I am using JBoss4.02/Hibernate3/HSQLDB to try some sample code.

Thanks,


SQ


Top
 Profile  
 
 Post subject: hibernate-service.xml allows the attribute
PostPosted: Tue Aug 16, 2005 5:14 pm 
Newbie

Joined: Mon Aug 15, 2005 11:16 am
Posts: 14
Actually, hibernate-service.xml allows the attribute not the jboss-service.xml file.

hibernate-service.xml is MBean configuration for HAR deployment for JBoss 4.0.2


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