File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Qury problem?" Watch "Qury problem?" New topic

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" />

<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" />

Mark Spritzler

Joined: Feb 05, 2001
Posts: 17276

Moving this post to the thread you meant to reply too.


Perfect World Programming, LLC - iOS Apps
How to Ask Questions the Smart Way FAQ
I agree. Here's the link:
subject: Qury problem?
It's not a secret anymore!