-->
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.  [ 2 posts ] 
Author Message
 Post subject: @Table schema
PostPosted: Fri Aug 31, 2007 5:27 pm 
Newbie

Joined: Wed Aug 01, 2007 9:26 am
Posts: 2
I have two different database in Sql Server:
the first one is a general user / permissions dataBase named userDataBase and the second one is my Application DataBase named aplDataBase

I'm using jtds 1.2 with hibernate 3.2.1 and in my persistence.xml I have my url :

<property name="hibernate.connection.url" value="jdbc:jtds:sqlserver://myServerName:1433/aplDataBase" />

I'm trying to map a table through annotations in userDataBase :

@Entity
@Table(name="USER", schema="userDataBase")

When I run my application I receive the following error :

Invalid object name 'userDataBase.USER'


Top
 Profile  
 
 Post subject: Re: @Table schema
PostPosted: Tue Sep 04, 2007 3:34 am 
Newbie

Joined: Tue Sep 04, 2007 2:53 am
Posts: 7
Does the user you are using have access rights for the schema 'userDataBase' ?


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