Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Object Relational Mapping and the fly likes Qury problem? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Qury problem?" Watch "Qury problem?" New topic
Author

Qury problem?

sudhakar Tadepalli
Ranch Hand

Joined: Dec 27, 2001
Posts: 130
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: 17260
    
    6

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
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Qury problem?