This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes OpenJPA keys. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "OpenJPA keys." Watch "OpenJPA keys." New topic

OpenJPA keys.

victor chiong
Ranch Hand

Joined: Apr 04, 2012
Posts: 73
Hi Guys,


Table Customer

Customer_Name Customer_address Customer_Type Items Time_stamp.

The table has no keys on it.... How can we place a key on it using jpa? In RPG programming, I can just create and object called logical file and Add keys there like If I want the customer name as keys or etc.. But I have no idea on JPA..
I am new to jpa and I'm studying it and relating it to my legacy language..


I agree. Here's the link:
subject: OpenJPA keys.
Similar Threads
how to use JPA to save a list of objects
[JPA] Can I mark two fields with @Id annotation
JPA inheritance and entity classes
How to implement OneToOne entity without explicit id field
CMR entity beans and primary key.