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.  [ 6 posts ] 
Author Message
 Post subject: Where Are Hibernate Gurus ???
PostPosted: Tue Jan 23, 2007 12:51 pm 
Beginner
Beginner

Joined: Wed Oct 25, 2006 12:10 pm
Posts: 41
I have posted a simple query on Hibernate Forum (http://forum.hibernate.org/viewtopic.ph ... highlight=)

It has more than 430 Views but till now i didn't got an answer for my query. That means there are lots of people who have similar kind of query and looking for a answer.

Is it possible to design the Forums in way to answer the queries which gets maximum number of hits.

Its quite unfortunate that i am unable to make a simple object relational mapping going . I read the documentation, looked at the examples , change the version to Hibernate 3.2 , pretty much did everything on earth. Now it needs some experience advise to resolve the problem

Wondering if it goes this way how Hibernate would be accepted among industry users.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 12:55 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
you can't name a property id.

it's a hibernate reserved word

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 1:17 pm 
Beginner
Beginner

Joined: Wed Oct 25, 2006 12:10 pm
Posts: 41
Hi Chris
Thanks for your time in looking into the posting

Are you refering to the property id in POJO or in hbm.xml configuration file

I wrote several examples which works absolutely fine with property as id in both POJO and hbm.xml configuartion file and it didnt complain saying id as hibernate reserved word or throw IllegalArgumentException


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 2:05 pm 
Expert
Expert

Joined: Fri Aug 19, 2005 2:11 pm
Posts: 628
Location: Cincinnati
hmm, that's been a problem before. Maybe they removed it with the new hibernate.

can you use an Integer java data type? I've never used hsql

_________________
Chris

If you were at work doing this voluntarily, imagine what you'd want to see to answer a question.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 6:30 pm 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
"The special property (lowercase) id may be used to reference the
unique identifier of an object. (You may also use its mapped
identifer property name.). Note that this keyword is specific to
HQL."

http://www.hibernate.org/hib_docs/entit ... ryhql.html

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Jan 23, 2007 8:27 pm 
Beginner
Beginner

Joined: Wed Oct 25, 2006 12:10 pm
Posts: 41
Thanks for response. I am still looking forward to someone who can provide insights to my query posted on http://forum.hibernate.org/viewtopic.ph ... highlight=


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