Author: tchemit Date: 2010-05-10 11:40:32 +0200 (Mon, 10 May 2010) New Revision: 1946 Url: http://nuiton.org/repositories/revision/topia/1946 Log: add getSourcetype on Loador Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Loador.java Modified: trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Loador.java =================================================================== --- trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Loador.java 2010-05-09 20:30:29 UTC (rev 1945) +++ trunk/topia-persistence/src/main/java/org/nuiton/topia/persistence/util/Loador.java 2010-05-10 09:40:32 UTC (rev 1946) @@ -37,6 +37,13 @@ public interface Loador<E> extends Serializable { /** + * Obtains the type of the entity. + * + * @return the type of entity + */ + Class<E> getSourceType(); + + /** * Obtain from an entity all data to bind to another one according the * definition of the loador. * <p/> @@ -57,10 +64,10 @@ /** * Bind an entity to another. * - * @param from the source entity - * @param dst the destination entity - * @param tech a flag to bind or not the technical values of the entity - * (says TopiaId, TopiaVersion and TopiaCreateDate). + * @param from the source entity + * @param dst the destination entity + * @param tech a flag to bind or not the technical values of the entity + * (says TopiaId, TopiaVersion and TopiaCreateDate). * @param propertyNames subset of properties to load */ void load(E from, E dst, boolean tech, String... propertyNames);