Changeset 6675
- Timestamp:
- Jan 8, 2015, 1:55:01 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.4-stable/src/core/net/sf/basedb/core/AnyToAny.java
r6127 r6675 28 28 import org.hibernate.mapping.Table; 29 29 30 import net.sf.basedb.core.Transactional.Action;31 30 import net.sf.basedb.core.data.AnyToAnyData; 32 31 import net.sf.basedb.core.hibernate.TypeWrapper; … … 52 51 public class AnyToAny 53 52 extends BasicItem<AnyToAnyData> 54 implements Nameable 53 implements Nameable, Transactional 55 54 { 56 55 … … 480 479 { 481 480 super.onBeforeCommit(action); 482 if (action == Action.CREATE )481 if (action == Action.CREATE || action == Action.UPDATE && (getToId() == 0 || getFromId() == 0)) 483 482 { 484 483 // In case either the to or from items are also new items
Note: See TracChangeset
for help on using the changeset viewer.