-->
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: Can't work with Oracle's synonyms!!!
PostPosted: Tue Apr 25, 2006 9:21 am 
Newbie

Joined: Fri Apr 21, 2006 9:57 am
Posts: 3
Hello,

I can't work with Oracle's synonyms.

I can only see synonyms for system's schema!

<hibernate-mapping>

<class name="pojo.User" table="MySynonymOfUser" schema="MYSCHEMA">

<id name="userId" type="java.lang.String">
...


when I use synonyms, the return is an oracle's error : table or view does not exist ;

It seems that rights on the synonyms are well granted for the user for the schema that I want use , (in fact with TOAD i can see them).

Do you know if there is bugs with Oracle 10g and hibernate?

Could you help me ?

thx.


Top
 Profile  
 
 Post subject: re: Can't see Oracle's synonyms in the DB Browser!!!
PostPosted: Tue Apr 25, 2006 10:27 am 
Newbie

Joined: Fri Apr 21, 2006 9:57 am
Posts: 3
Hello,

I have found the problem !
i'm generating my pojos with myeclipse using custom templates

the problem is the attribute schema=" "

I remove schema and that runs fine !!

<hibernate-mapping>

<class name="pojo.User" table="MySynonymOfUser">

<id name="userId" type="java.lang.String">
...


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.