mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
#347 - @History support with query.asOf(Timestamp)
This commit is contained in:
1 parent
3cafb37a73
commit
82489636d5
37 files changed
+601
-92
No files matched your search
@@ -173,6 +173,8 @@ public class BeanProperty implements ElPropertyValue {
|
||||
*/
|
||||
final int dbType;
|
||||
|
||||
final boolean excludedFromHistory;
|
||||
|
||||
/**
|
||||
* The default value to insert if null.
|
||||
*/
|
||||
@@ -256,6 +258,7 @@ public class BeanProperty implements ElPropertyValue {
|
||||
this.dbRead = deploy.isDbRead();
|
||||
this.dbInsertable = deploy.isDbInsertable();
|
||||
this.dbUpdatable = deploy.isDbUpdateable();
|
||||
this.excludedFromHistory = deploy.isExcludedFromHistory();
|
||||
|
||||
this.secondaryTable = deploy.isSecondaryTable();
|
||||
if (secondaryTable) {
|
||||
@@ -341,6 +344,7 @@ public class BeanProperty implements ElPropertyValue {
|
||||
this.sqlFormulaSelect = InternString.intern(override.getSqlFormulaSelect());
|
||||
this.formula = sqlFormulaSelect != null;
|
||||
|
||||
this.excludedFromHistory = source.excludedFromHistory;
|
||||
this.fetchEager = source.fetchEager;
|
||||
this.unidirectionalShadow = source.unidirectionalShadow;
|
||||
this.discriminator = source.discriminator;
|
||||
@@ -1004,6 +1008,13 @@ public class BeanProperty implements ElPropertyValue {
|
||||
return dbEncryptedType;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this property is excluded from history.
|
||||
*/
|
||||
public boolean isExcludedFromHistory() {
|
||||
return excludedFromHistory;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return true if this property should be included in an Insert.
|
||||
*/
|
||||
|
||||
Reference in new issue
Block a user