From: Vance K. <va...@us...> - 2006-01-17 04:08:22
|
User: vancek Date: 06/01/16 20:08:12 Modified: andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades EJB3EntityFacadeLogicImpl.java Log: added entity generic finders support Revision Changes Path 1.4 +23 -5 cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java Index: EJB3EntityFacadeLogicImpl.java =================================================================== RCS file: /cvsroot/andromdaplugins/cartridges/andromda-ejb3/src/main/java/org/andromda/cartridges/ejb3/metafacades/EJB3EntityFacadeLogicImpl.java,v retrieving revision 1.3 retrieving revision 1.4 diff -u -w -r1.3 -r1.4 --- EJB3EntityFacadeLogicImpl.java 6 Jan 2006 13:56:17 -0000 1.3 +++ EJB3EntityFacadeLogicImpl.java 17 Jan 2006 04:08:12 -0000 1.4 @@ -50,12 +50,14 @@ private static final String ENTITY_INHERITANCE_STRATEGY = "entityInheritanceStrategy"; /** - * Stores the default entity discriminator type used in the inheritance annotation + * Stores the default entity discriminator type used in the + * inheritance annotation */ private static final String ENTITY_DISCRIMINATOR_TYPE = "entityDiscriminatorType"; /** - * Stores the default entity discriminator column name used in the DiscriminatorColumn annotation + * Stores the default entity discriminator column name used in + * the DiscriminatorColumn annotation */ private static final String ENTITY_DISCRIMINATOR_COLUMN_NAME = "entityDiscriminatorColumnName"; @@ -119,20 +121,28 @@ public static final String ENTITY_NAME_PATTERN = "entityNamePattern"; /** - * The property which stores the pattern defining the entity implementation name. + * The property which stores the pattern defining the entity + * implementation name. */ public static final String ENTITY_IMPLEMENTATION_NAME_PATTERN = "entityImplementationNamePattern"; /** - * The property that stores the pattern defining the entity listener class name. + * The property that stores the pattern defining the entity + * listener class name. */ public static final String ENTITY_LISTENER_NAME_PATTERN = "entityListenerNamePattern"; /** - * The property that stores the pattern defining the entity embeddable super class name. + * The property that stores the pattern defining the entity + * embeddable super class name. */ public static final String ENTITY_EMBEDDABLE_NAME_PATTERN = "entityEmbeddableNamePattern"; + /** + * The p0roperty that stores the generic finders option + */ + private static final String ENTITY_GENERIC_FINDERS = "entityGenericFinders"; + // ---------------- constructor ------------------------------- public EJB3EntityFacadeLogicImpl (Object metaObject, String context) @@ -859,4 +869,12 @@ } return sb.toString(); } + + /** + * @see org.andromda.cartridges.ejb3.metafacades.EJB3EntityFacadeLogic#handleIsGenericFinders() + */ + protected boolean handleIsGenericFinders() + { + return BooleanUtils.toBoolean(String.valueOf(this.getConfiguredProperty(ENTITY_GENERIC_FINDERS))); + } } \ No newline at end of file |