|
|
|
My issue was mostly about removing the current duplication of each of the named interfaces:
./data/hibernate/src/main/java/org/appfuse/dao/GenericDao.java ./data/ibatis/src/main/java/org/appfuse/dao/GenericDao.java ./data/jpa/src/main/java/org/appfuse/dao/GenericDao.java ./data/hibernate/src/main/java/org/appfuse/dao/UniversalDao.java ./data/ibatis/src/main/java/org/appfuse/dao/UniversalDao.java ./data/jpa/src/main/java/org/appfuse/dao/UniversalDao.java by creating a new maven module or adding a single copy to data/common, than to add generic finder methods to those interfaces. Unfortunately I don't have any iBATIS experience, so I cannot be helpful on the subject of developing generic finder methods for that specific framework, but I would prefer the GenericDAO and UniversalDAO to have methods that are available across all implementations, otherwise it would be impossible to switch. |
||||||||||||||||||||||||||||||||||||||
Maybe it's a good idea, who knows. However, this seems like a low priority issue. I'd rather 1) implement generic finders in all 3 and 2) if we need to consolidate, move them into data-common.