mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#115 - Mapping - Add support for @ElementCollection enhancement
Add embedded bean support
This commit is contained in:
@@ -11,6 +11,16 @@ import java.util.Map;
|
||||
*/
|
||||
public class BeanCollectionUtil {
|
||||
|
||||
/**
|
||||
* Return true if this is a bean collection and not considered dirty.
|
||||
*/
|
||||
public static boolean isModified(Object collection) {
|
||||
if ((collection instanceof BeanCollection<?>)) {
|
||||
return ((BeanCollection<?>) collection).holdsModifications();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the details of the collection or map taking care to avoid
|
||||
* unnecessary fetching of the data.
|
||||
|
||||
Reference in New Issue
Block a user