01: package org.osbl.inventory;
02:
03: import org.osbl.*;
04: import org.osbl.inventory.model.Inventory;
05: import org.osbl.persistence.*;
06: import org.conform.hibernate.HibernateEnvironment;
07: import org.hibernate.Hibernate;
08:
09: import java.util.*;
10:
11: public class InventoryLocator extends
12: PersistenceObjectLocator<Inventory> {
13: protected String getPersistenceServiceName() {
14: return "InventoryPersistence";
15: }
16:
17: protected Class getObjectClass() {
18: return Inventory.class;
19: }
20:
21: protected void initialize(Inventory object) {
22: Hibernate.initialize(object);
23: Hibernate.initialize(object.getLocation());
24: Hibernate.initialize(object.getCostType());
25: }
26: }
|