A friendly place for programming greenhorns!
Big Moose Saloon
Search
|
Java FAQ
|
Recent Topics
Register / Login
JavaRanch
»
Java Forums
»
Databases
»
Object Relational Mapping
Author
Qury problem?
sudhakar Tadepalli
Ranch Hand
Joined: Dec 27, 2001
Posts: 130
posted
Jul 29, 2005 07:49:00
0
Paul, Thanks for your reply, Id property is not a primary ky but Hiber nate propertis file forcing to declare one Id property.
<class name="Data" table="TestTable">
<id name="id" column="SCENEID" type="long">
<generator class="assigned" />
</id>
<property name="personid" column="PERSONID" type="long" />
<property name="nodeid" column="NODEID" type="long" />
<property name="name" column="NAME" type="java.lang.String" />
<property name="value" column="VALUE" type="java.lang.String" />
</class>
Thanks
Mark Spritzler
ranger
Sheriff
Joined: Feb 05, 2001
Posts: 17225
1
I like...
posted
Jul 29, 2005 10:11:00
0
Moving this post to the thread you meant to reply too.
Mark
Perfect World Programming, LLC
-
Two Laptop Bag
-
Tube Organizer
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
http://ej-technologies/jprofiler
- if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
subject: Qury problem?
Similar Threads
hibernate mapping
hbm.xml file does an update instead of an insert- Helppppp
Hibernate Query problem.
Hibernate Spring,CompositeKey Update failure
Error reading resource Hibernate
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter