mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
32 lines
625 B
Java
32 lines
625 B
Java
package com.avaje.ebeaninternal.server.deploy;
|
|
|
|
public class BeanEmbeddedMeta {
|
|
|
|
|
|
final BeanProperty[] properties;
|
|
|
|
public BeanEmbeddedMeta(BeanProperty[] properties) {
|
|
this.properties = properties;
|
|
}
|
|
|
|
/**
|
|
* Return the properties with over ridden mapping information.
|
|
*/
|
|
public BeanProperty[] getProperties() {
|
|
return properties;
|
|
}
|
|
|
|
/**
|
|
* Return true if at least one property is a version property.
|
|
*/
|
|
public boolean isEmbeddedVersion() {
|
|
for (int i = 0; i < properties.length; i++) {
|
|
if (properties[i].isVersion()){
|
|
return true;
|
|
}
|
|
}
|
|
return false;
|
|
}
|
|
|
|
}
|