-
Type: Improvement
-
Status: Closed (View Workflow)
-
Priority: Major
-
Resolution: Fixed
-
Affects Version/s: 1.5 Larks
-
Labels:None
-
Sprint:1.9 Larks
1. Removing duplicate dao method
Method void save(T entity) in ChildRepository is equal by implementation to void saveOrUpdate(T entity) in ParentRepository. It needed to removed duplicate functionality from parent repository as our parent extends child... (it's funny).
2. refactoring Branch dao interface (mapping bag to Collection).
According to Java Persistence With Hibernate note: Write the collection property with the java.util.Collection interface, and, on declaration, initialize it with an ArrayList of the JDK. Map the collection in Hibernate with a standard <bag> or <idbag> element. Hibernate has a built-in PersistentBag that can deal with lists; however, consistent with the contract of a bag, it ignores the position of elements in the ArrayList.
- relates to
-
JC-1343 Examine *.hbm files to proper using of different mapping options
- Closed