Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Object Relational Mapping
Search Coderanch
Advance search
Google search
Register / Login
Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Object Relational Mapping
How to know whether a particular row exists in table
chandrakanth boga
Ranch Hand
Posts: 49
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I have a Table USTCOLOR which has two colomns project_reference and Color_Codes.
How do i find a particular project reference exists in the table or not?
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Are you using an ORM for this? If so, which one?
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
chandrakanth boga
Ranch Hand
Posts: 49
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Yes...I am using Hibernate
chandrakanth boga
Ranch Hand
Posts: 49
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
I am using Oracle database
Paul Sturrock
Bartender
Posts: 10336
I like...
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Well you can get it by its primary key or look it up via a query. See the Session interface and its various get and createQuery methods.
JavaRanch FAQ
HowToAskQuestionsOnJavaRanch
chandrakanth boga
Ranch Hand
Posts: 49
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
thanks for the information paul.....But i am completely new with the Hibernate...I really some code stuff...
Darya Akbari
Ranch Hand
Posts: 1855
posted 16 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Hi,
if you are new to Hibernate take look at
Java
Persistence with Hibernate - Chapter 2 for a deeper understanding. There search for createQuery.
Regards,
Darya
SCJP, SCJD, SCWCD, SCBCD
Consider Paul's
rocket mass heater
.
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
CREATE TABLE
Detect if table exists
Find out if a table exists
Check if a table exists in a database
How 2 create a new DB with MySQL and JDBC
More...