Page 1 of 1

About Question enthuware.oce-jpad.v6.2.425 :

Posted: Thu Mar 21, 2019 2:56 am
by nikitos
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 "";
}

Re: About Question enthuware.oce-jpad.v6.2.425 :

Posted: Thu Mar 21, 2019 4:01 am
by admin
Actually, this example is taken directly from the JPA specification - section 11.1.39 page 407.