mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
40 lines
874 B
Java
40 lines
874 B
Java
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;
|
|
}
|
|
}
|