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

Moderator: admin

Post Reply
nikitos
Posts: 21
Joined: Mon Oct 24, 2016 6:55 am
Contact:

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

Post by nikitos » Thu Mar 21, 2019 2:56 am

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 "";
}

admin
Site Admin
Posts: 8065
Joined: Fri Sep 10, 2010 9:26 pm
Contact:

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

Post by admin » Thu Mar 21, 2019 4:01 am

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.

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest