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.  [ 1 post ] 
Author Message
 Post subject: Hibernate creating table under different user
PostPosted: Wed Nov 25, 2009 1:33 pm 
Newbie

Joined: Wed Nov 25, 2009 1:18 pm
Posts: 1
Hi All,

First time using hibernate for a project. It is stated that the method store will create a table if hbm2ddl.auto is set to update. It creates the table fine but my gripe is that it is creating it under a different table owner. I was under the impression that it would create it using the username specified in the jdbc url inside the hibernate.cfg.xml. What do I need to do so that it creates it under an id that I want.

Below is a snapshot of my hibernate.cfg.xml file:

<property name="connection.driver_class">
com.microsoft.sqlserver.jdbc.SQLServerDriver
</property>
<property name="connection.url">
jdbc:sqlserver://10.11.12.13:1433;databaseName=MORGAN
</property>
<property name="connection.username">
mor
</property>
<property name="connection.password">
mor999
</property>

When it creates table, it doesn't create it under 'mor' as owner. What do I need to do to get it created under 'mor'.

Advise greatly appreciated.

Thanks and Regards,


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.