Wrong example:
@OrderColumn("WAITLIST_ORDER")
should be:
@OrderColumn(name = "WAITLIST_ORDER")
Accroding to the annotation definition:
@Target({ElementType.METHOD, ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface OrderColumn {
String name() default "";
boolean nullable() default true;
boolean insertable() default true;
boolean updatable() default true;
String columnDefinition() default "";
}
About Question enthuware.oce-jpad.v6.2.425 :
Moderator: admin
-
- Posts: 21
- Joined: Mon Oct 24, 2016 6:55 am
- Contact:
-
- Site Admin
- Posts: 10326
- Joined: Fri Sep 10, 2010 9:26 pm
- Contact:
Re: About Question enthuware.oce-jpad.v6.2.425 :
Actually, this example is taken directly from the JPA specification - section 11.1.39 page 407.
If you like our products and services, please help us by posting your review here.
Who is online
Users browsing this forum: No registered users and 2 guests