#1142 - Mapping - Add support for @OrderColumn (Ebean automatically maintains an order column)

This commit is contained in:
Rob Bygrave
2018-02-15 22:31:41 +13:00
parent 31cac60393
commit 628af31ddd
23 changed files with 746 additions and 209 deletions
@@ -0,0 +1,39 @@
package io.ebeaninternal.server.deploy.meta;
import javax.persistence.OrderColumn;
public class DeployOrderColumn {
/**
* Logical property name used for order by and available for expression language.
*/
public static final String LOGICAL_NAME = "orderColumn";
private final String name;
private final boolean insertable;
private final boolean updatable;
private final boolean nullable;
public DeployOrderColumn(OrderColumn orderColumn) {
this.name = orderColumn.name();
this.insertable = orderColumn.insertable();
this.updatable = orderColumn.updatable();
this.nullable = orderColumn.nullable();
}
public String getName() {
return name;
}
public boolean isInsertable() {
return insertable;
}
public boolean isUpdatable() {
return updatable;
}
public boolean isNullable() {
return nullable;
}
}