Author: chemit Date: 2008-11-28 13:13:02 +0000 (Fri, 28 Nov 2008) New Revision: 1241 Removed: topia/trunk/topia-persistence/src/main/java/topia/ Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/TopiaEntityEnumEntry.java Log: not set topiaContext with create method (already done by dao) remove empty directories Modified: topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/TopiaEntityEnumEntry.java =================================================================== --- topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/TopiaEntityEnumEntry.java 2008-11-21 11:54:32 UTC (rev 1240) +++ topia/trunk/topia-persistence/src/main/java/org/codelutin/topia/persistence/TopiaEntityEnumEntry.java 2008-11-28 13:13:02 UTC (rev 1241) @@ -28,7 +28,7 @@ return contractClass; } - @SuppressWarnings( { "unchecked" }) + @SuppressWarnings({"unchecked"}) public Class<T> getImplementationClass() { if (implementationClass == null) { try { @@ -51,10 +51,7 @@ public T create(TopiaContext ctxt) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); - T newInstance = dao.create(); - // attach topia context to entity (to allow propertyChangeSupport for entity) - ((TopiaEntityAbstract) newInstance).setTopiaContext(ctxt); - return newInstance; + return dao.create(); } public T create(TopiaContext ctxt, Object... properties) @@ -120,7 +117,7 @@ } public T findByProperties(TopiaContext ctxt, String propertyName, - Object value, Object... others) throws TopiaException { + Object value, Object... others) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findByProperties(propertyName, value, others); } @@ -132,43 +129,43 @@ } public List<T> findAllByProperty(TopiaContext ctxt, String propertyName, - Object value) throws TopiaException { + Object value) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findAllByProperty(propertyName, value); } public List<T> findAllByProperties(TopiaContext ctxt, String propertyName, - Object value, Object... others) throws TopiaException { + Object value, Object... others) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findAllByProperties(propertyName, value, others); } public List<T> findAllByProperties(TopiaContext ctxt, - Map<String, Object> properties) throws TopiaException { + Map<String, Object> properties) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findAllByProperties(properties); } public T findContainsProperties(TopiaContext ctxt, - Map<String, Collection> properties) throws TopiaException { + Map<String, Collection> properties) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findContainsProperties(properties); } public T findContainsProperties(TopiaContext ctxt, String propertyName, - Collection values, Object... others) throws TopiaException { + Collection values, Object... others) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findContainsProperties(propertyName, values, others); } public List<T> findAllContainsProperties(TopiaContext ctxt, - Map<String, Collection> properties) throws TopiaException { + Map<String, Collection> properties) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findAllContainsProperties(properties); } public List<T> findAllContainsProperties(TopiaContext ctxt, - String propertyName, Collection values, Object... others) + String propertyName, Collection values, Object... others) throws TopiaException { TopiaDAO<T> dao = getDAO(ctxt); return dao.findAllContainsProperties(propertyName, values, others);