Uploaded image for project: 'JCommune'
  1. JCommune
  2. JC-1364

Removing duplicate dao method, refactoring Branch dao interface.

VotersWatchers
    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5 Larks
    • Fix Version/s: 1.5 Larks, 1.9 Larks
    • Labels:
      None
    • Sprint:
      1.9 Larks

      Description

      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.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  ctapobep Stanislav Bashkyrtsev
                  Reporter:
                  alexandreteterin@gmail.com Alexandre Teterin
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Due:
                    Created:
                    Updated:
                    Resolved:

                    Time Tracking

                    Estimated:
                    Original Estimate - 2h Original Estimate - 2h
                    2h
                    Remaining:
                    Remaining Estimate - 0h
                    0h
                    Logged:
                    Time Spent - 4h
                    4h

                      Structure Helper Panel