A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Object Relational Mapping
selecting nexval from a db sequence
Joined: Jan 17, 2006
May 27, 2008 08:53:00
when I try to select the NEXTVAL from a DB Sequence entity. Hibernate is appending the logged in user id as a schema rather the schema defined in hibernate.properties.
Any ideas on why it is doing so. Please suggest.
Yellapa Adepu<br />SCEA
Joined: Feb 05, 2001
May 27, 2008 09:29:00
Can you show the query?
How are you selecting the nextval?
Personally, I would use an SQLQuery object for it and just use the
"select mySeq.nextval from dual" query for it. Just straight SQL.
Perfect World Programming, LLC
Two Laptop Bag
How to Ask Questions the Smart Way FAQ
It is sorta covered in the
JavaRanch Style Guide
subject: selecting nexval from a db sequence
Testing of data class instance(s)
URLyBird: Database schema
What should be the connection URL
Import data from database with sequence as primary key
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013