Equipment list now uses ids instead of the referencing the object to avoid storing duplicate objects in the db

This commit is contained in:
Light2
2014-05-04 20:54:41 +02:00
parent 3c3155b8b2
commit db4a47b35a
8 changed files with 49 additions and 28 deletions
@@ -51,8 +51,6 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
private static final long serialVersionUID = 1L;
@NotPersistent
private transient BuildingMessageBuilder messageBuilder;
@NotPersistent
private transient Transaction txn;
private float maintenanceAmount = 0;
private int BMR = 0;
@@ -248,13 +246,6 @@ public class BuildingObject extends TangibleObject implements IPersistent, Seria
destination.getSession().write(messageBuilder.buildBaseline9());
}
public Transaction getTransaction() { return txn; }
public void createTransaction(Environment env) {
txn = env.beginTransaction(null, null);
txn.setLockTimeout(500, TimeUnit.MILLISECONDS);
}
public Vector<CellObject> getCells() {
final Vector<CellObject> cells = new Vector<CellObject>();