mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-10-24 08:25:50 +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();
|
||||
}
|
||||
|
||||
@@ -104,7 +104,7 @@ public class TestRawSqlMasterDetail extends BaseTestCase {
|
||||
EBasic basic1 = list.get(0);
|
||||
basic1.setDescription("insertAfterRawFetch");
|
||||
|
||||
Ebean.insert(basic1);
|
||||
Ebean.save(basic1);
|
||||
}
|
||||
|
||||
@Test
|
||||
|
||||
Reference in New Issue
Block a user