mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-18 14:58:47 +00:00
No effective change - param always true
This commit is contained in:
1 parent
5609bc6d02
commit
19b7637d46
11 files changed
+58
-58
No files matched your search
@@ -67,7 +67,7 @@ public class AnnotationAssocManys extends AnnotationParser {
|
||||
}
|
||||
|
||||
if (get(prop, HistoryExclude.class) != null) {
|
||||
prop.setExcludedFromHistory(true);
|
||||
prop.setExcludedFromHistory();
|
||||
}
|
||||
|
||||
OrderBy orderBy = get(prop, OrderBy.class);
|
||||
@@ -280,7 +280,7 @@ public class AnnotationAssocManys extends AnnotationParser {
|
||||
throw new RuntimeException(msg);
|
||||
}
|
||||
|
||||
manyProp.setManyToMany(true);
|
||||
manyProp.setManyToMany();
|
||||
manyProp.setModifyListenMode(ModifyListenMode.ALL);
|
||||
manyProp.setBeanTable(assoc);
|
||||
manyProp.getTableJoin().setType(SqlJoinType.OUTER);
|
||||
|
||||
@@ -66,8 +66,8 @@ public class AnnotationAssocOnes extends AnnotationParser {
|
||||
}
|
||||
EmbeddedId emId = get(prop, EmbeddedId.class);
|
||||
if (emId != null) {
|
||||
prop.setEmbedded(true);
|
||||
prop.setId(true);
|
||||
prop.setEmbedded();
|
||||
prop.setId();
|
||||
prop.setNullable(false);
|
||||
}
|
||||
Column column = get(prop, Column.class);
|
||||
@@ -80,8 +80,8 @@ public class AnnotationAssocOnes extends AnnotationParser {
|
||||
// May as well check for Id. Makes sense to me.
|
||||
Id id = get(prop, Id.class);
|
||||
if (id != null) {
|
||||
prop.setEmbedded(true);
|
||||
prop.setId(true);
|
||||
prop.setEmbedded();
|
||||
prop.setId();
|
||||
prop.setNullable(false);
|
||||
}
|
||||
|
||||
@@ -171,14 +171,14 @@ public class AnnotationAssocOnes extends AnnotationParser {
|
||||
|
||||
private void readOneToOne(OneToOne propAnn, DeployBeanPropertyAssocOne<?> prop) {
|
||||
|
||||
prop.setOneToOne(true);
|
||||
prop.setOneToOne();
|
||||
prop.setDbInsertable(true);
|
||||
prop.setDbUpdateable(true);
|
||||
prop.setNullable(propAnn.optional());
|
||||
prop.setFetchType(propAnn.fetch());
|
||||
prop.setMappedBy(propAnn.mappedBy());
|
||||
if (!"".equals(propAnn.mappedBy())) {
|
||||
prop.setOneToOneExported(true);
|
||||
prop.setOneToOneExported();
|
||||
}
|
||||
|
||||
setCascadeTypes(propAnn.cascade(), prop.getCascadeInfo());
|
||||
@@ -194,7 +194,7 @@ public class AnnotationAssocOnes extends AnnotationParser {
|
||||
|
||||
private void readEmbedded(DeployBeanPropertyAssocOne<?> prop) {
|
||||
|
||||
prop.setEmbedded(true);
|
||||
prop.setEmbedded();
|
||||
prop.setDbInsertable(true);
|
||||
prop.setDbUpdateable(true);
|
||||
|
||||
|
||||
@@ -90,7 +90,7 @@ public class AnnotationClass extends AnnotationParser {
|
||||
|
||||
History history = cls.getAnnotation(History.class);
|
||||
if (history != null) {
|
||||
descriptor.setHistorySupport(true);
|
||||
descriptor.setHistorySupport();
|
||||
}
|
||||
|
||||
UpdateMode updateMode = cls.getAnnotation(UpdateMode.class);
|
||||
@@ -144,7 +144,7 @@ public class AnnotationClass extends AnnotationParser {
|
||||
String propName = cacheStrategy.naturalKey().trim();
|
||||
DeployBeanProperty beanProperty = descriptor.getBeanProperty(propName);
|
||||
if (beanProperty != null) {
|
||||
beanProperty.setNaturalKey(true);
|
||||
beanProperty.setNaturalKey();
|
||||
cacheOptions.setNaturalKey(propName);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,20 +78,20 @@ public class AnnotationFields extends AnnotationParser {
|
||||
|
||||
Id id = get(prop, Id.class);
|
||||
if (id != null) {
|
||||
prop.setId(true);
|
||||
prop.setId();
|
||||
prop.setNullable(false);
|
||||
}
|
||||
|
||||
EmbeddedId embeddedId = get(prop, EmbeddedId.class);
|
||||
if (embeddedId != null) {
|
||||
prop.setId(true);
|
||||
prop.setId();
|
||||
prop.setNullable(false);
|
||||
prop.setEmbedded(true);
|
||||
prop.setEmbedded();
|
||||
}
|
||||
|
||||
if (prop instanceof DeployBeanPropertyAssocOne<?>) {
|
||||
if (prop.isId() && !prop.isEmbedded()) {
|
||||
prop.setEmbedded(true);
|
||||
prop.setEmbedded();
|
||||
}
|
||||
readEmbeddedAttributeOverrides((DeployBeanPropertyAssocOne<?>) prop);
|
||||
}
|
||||
@@ -186,7 +186,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
Version version = get(prop, Version.class);
|
||||
if (version != null) {
|
||||
// explicitly specify a version column
|
||||
prop.setVersionColumn(true);
|
||||
prop.setVersionColumn();
|
||||
generatedPropFactory.setVersion(prop);
|
||||
}
|
||||
|
||||
@@ -217,7 +217,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
}
|
||||
|
||||
if (get(prop, HistoryExclude.class) != null) {
|
||||
prop.setExcludedFromHistory(true);
|
||||
prop.setExcludedFromHistory();
|
||||
}
|
||||
|
||||
if (validationAnnotations) {
|
||||
@@ -265,7 +265,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
prop.setDbRead(false);
|
||||
prop.setDbInsertable(false);
|
||||
prop.setDbUpdateable(false);
|
||||
prop.setTransient(true);
|
||||
prop.setTransient();
|
||||
}
|
||||
|
||||
if (!prop.isTransient()) {
|
||||
@@ -286,7 +286,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
if (hasRelationshipItem(prop)) {
|
||||
throw new RuntimeException("Can't use Index on foreign key relationships.");
|
||||
}
|
||||
prop.setIndexed(true);
|
||||
prop.setIndexed();
|
||||
prop.setIndexName(index.value());
|
||||
}
|
||||
}
|
||||
@@ -318,7 +318,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
DataEncryptSupport support = createDataEncryptSupport(prop);
|
||||
ScalarTypeBytesEncrypted encryptedScalarType = new ScalarTypeBytesEncrypted(baseType, support);
|
||||
prop.setScalarType(encryptedScalarType);
|
||||
prop.setLocalEncrypted(true);
|
||||
prop.setLocalEncrypted();
|
||||
return;
|
||||
|
||||
}
|
||||
@@ -339,7 +339,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
}
|
||||
|
||||
prop.setScalarType(createScalarType(prop, st));
|
||||
prop.setLocalEncrypted(true);
|
||||
prop.setLocalEncrypted();
|
||||
if (dbLen > 0) {
|
||||
prop.setDbLength(dbLen);
|
||||
}
|
||||
@@ -370,7 +370,7 @@ public class AnnotationFields extends AnnotationParser {
|
||||
|
||||
private void readId(DeployBeanProperty prop) {
|
||||
|
||||
prop.setId(true);
|
||||
prop.setId();
|
||||
prop.setNullable(false);
|
||||
|
||||
if (prop.getPropertyType().equals(UUID.class)) {
|
||||
|
||||
@@ -25,7 +25,7 @@ public class TransientProperties {
|
||||
DeployBeanProperty prop = props.get(i);
|
||||
if (!prop.isDbRead() && !prop.isDbInsertable() && !prop.isDbUpdateable()) {
|
||||
// non-transient...
|
||||
prop.setTransient(true);
|
||||
prop.setTransient();
|
||||
}
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ public class TransientProperties {
|
||||
DeployBeanPropertyAssocOne<?> prop = ones.get(i);
|
||||
if (prop.getBeanTable() == null) {
|
||||
if (!prop.isEmbedded()) {
|
||||
prop.setTransient(true);
|
||||
prop.setTransient();
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -43,7 +43,7 @@ public class TransientProperties {
|
||||
for (int i = 0; i < manys.size(); i++) {
|
||||
DeployBeanPropertyAssocMany<?> prop = manys.get(i);
|
||||
if (prop.getBeanTable() == null) {
|
||||
prop.setTransient(true);
|
||||
prop.setTransient();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user