my dog learned polymorphism*
The moose likes Object Relational Mapping and the fly likes insertable = true in ID Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "insertable = true in ID" Watch "insertable = true in ID" New topic
Author

insertable = true in ID

nimo frey
Ranch Hand

Joined: Jun 28, 2008
Posts: 580
Does it makes sense to have the "insertable = true, updatable = true" in a PrimaryKey (ID) ?:



Or should I do that:

 
It is sorta covered in the JavaRanch Style Guide.
 
subject: insertable = true in ID
 
Similar Threads
Outer join between 3 entities in HQL
using 2 @OnetoMany annoations in one Entity Class
Getting a 'BatchUpdateException' error message
Simple JOIN in JPA proving difficult
insertable, updatable, unique within ID?