mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
#319 - Beans loaded without an @Id value ... return in NEW state rather than LOADED state (also refer to #317)
This commit is contained in:
@@ -276,7 +276,7 @@ public class SqlTreeNodeBean implements SqlTreeNode {
|
||||
if (Mode.LAZYLOAD_BEAN.equals(queryMode)) {
|
||||
// Lazy Load does not reset the dirty state
|
||||
ebi.setLoadedLazy();
|
||||
} else {
|
||||
} else if (readId) {
|
||||
// normal bean loading
|
||||
ebi.setLoaded();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user