A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
EJB Certification (SCBCD/OCPJBCD)
Doubt on updattable and insertable params
Joined: Sep 26, 2006
Sep 03, 2008 05:04:00
Is is mandatory to specify updatable and insertable parameters for Primary key fields?
@Column(name="USER_ID", insertable=false, updatable=false)
protected Long userId;
SCWCD 1.4 - Hints for you
, Certified Scrum Master
Did a rm -R / to find out that I lost my entire Linux installation!
Joined: Mar 22, 2007
Sep 03, 2008 07:40:00
They are optional and their default value is
. Take a look at section 9.1.5 of the
persistence specification (table 7).
SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link:
subject: Doubt on updattable and insertable params
insertable, updatable, unique within ID?
JPA: is @PrimaryKeyJoinColumn(…) the same as @JoinColumn(…, insertable = ?, updatable = ?)?
Hibernate generate timestamp on create and update
JPA MappingException: Repeated column in mapping for entity
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015