mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
Fix for #173 - Ability to use a MappedSuperClass without being enhanced as long as it doesn't have persistent fields
This commit is contained in:
@@ -707,10 +707,10 @@ public class DeployBeanDescriptor<T> {
|
||||
}
|
||||
|
||||
/**
|
||||
* Return an Iterator of all BeanProperty.
|
||||
* Return a collection of all BeanProperty deployment information.
|
||||
*/
|
||||
public Iterator<DeployBeanProperty> propertiesAll() {
|
||||
return propMap.values().iterator();
|
||||
public Collection<DeployBeanProperty> propertiesAll() {
|
||||
return propMap.values();
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
+3
-9
@@ -1,7 +1,6 @@
|
||||
package com.avaje.ebeaninternal.server.deploy.meta;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Iterator;
|
||||
import java.util.LinkedHashMap;
|
||||
import java.util.List;
|
||||
|
||||
@@ -76,18 +75,13 @@ public class DeployBeanPropertyLists {
|
||||
|
||||
this.propertyMap = new LinkedHashMap<String, BeanProperty>();
|
||||
|
||||
Iterator<DeployBeanProperty> deployIt = deploy.propertiesAll();
|
||||
while (deployIt.hasNext()) {
|
||||
DeployBeanProperty deployProp = deployIt.next();
|
||||
BeanProperty beanProp = createBeanProperty(owner, deployProp);
|
||||
for (DeployBeanProperty prop : deploy.propertiesAll()) {
|
||||
BeanProperty beanProp = createBeanProperty(owner, prop);
|
||||
propertyMap.put(beanProp.getName(), beanProp);
|
||||
}
|
||||
|
||||
Iterator<BeanProperty> it = propertyMap.values().iterator();
|
||||
|
||||
int order = 0;
|
||||
while (it.hasNext()) {
|
||||
BeanProperty prop = it.next();
|
||||
for (BeanProperty prop : propertyMap.values()) {
|
||||
prop.setDeployOrder(order++);
|
||||
allocateToList(prop);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user