mirror of
https://github.com/ProjectSWGCore/NGECore2.git
synced 2026-09-28 13:12:54 -04:00
Equipment list now uses ids instead of the referencing the object to avoid storing duplicate objects in the db
This commit is contained in:
@@ -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>();
|
||||
|
||||
Reference in New Issue
Block a user