File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Head First Android
this week in the
Object Relational Mapping
insertable, updatable, unique within ID?
Joined: Jun 28, 2008
Jan 14, 2009 00:38:03
Does the properties
"insertable=false, updatable=false, unique=true"
makes sense within the declaration of an ID-Property?
@Column(name = "ID_USER", nullable = false, insertable=false, updatable=false, unique=true)
public Integer getIdUser()...
Omar Al Kababji
Joined: Jan 13, 2009
Jan 14, 2009 08:08:39
updatable dosen't make sense since hibernate by default dosen't allow you to change the value of the primary key
unique is the same thing since the basic idea of a primary key is that its unique
regarding insertable ... i don't know
Omar Al Kababji - Electrical & Computer Engineer
[SCJP - 90% -
] [SCWCD - 94% -
] [SCBCD - 80% -
I agree. Here's the link:
subject: insertable, updatable, unique within ID?
insertable = true in ID
No mapped data?
OneToOne mapping with 2 composite keys using JPA
Saving database records problem
JPA2.0 CascadeType.ALL doesn't cascade persist
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015