View Javadoc
1   // Generated by: hibernate/SpringHibernateDaoImpl.vsl in andromda-spring-cartridge.
2   // license-header java merge-point
3   /**
4    * This is only generated once! It will never be overwritten.
5    * You can (and have to!) safely modify it by hand.
6    */
7   package org.andromda.timetracker.domain;
8   
9   import org.andromda.timetracker.vo.TimeAllocationVO;
10  
11  /**
12   * @see TimeAllocation
13   */
14  public class TimeAllocationDaoImpl
15      extends TimeAllocationDaoBase
16  {
17      /**
18       * {@inheritDoc}
19       */
20      @Override
21      public void toTimeAllocationVO(
22          TimeAllocation source,
23          TimeAllocationVO target)
24      {
25          // TODO verify behavior of toTimeAllocationVO
26          super.toTimeAllocationVO(source, target);
27      }
28  
29      /**
30       * {@inheritDoc}
31       */
32      @Override
33      public TimeAllocationVO toTimeAllocationVO(final TimeAllocation entity)
34      {
35          // TODO verify behavior of toTimeAllocationVO
36          return super.toTimeAllocationVO(entity);
37      }
38  
39      /**
40       * Retrieves the entity object that is associated with the specified value object
41       * from the object store. If no such entity object exists in the object store,
42       * a new, blank entity is created
43       */
44      private TimeAllocation loadTimeAllocationFromTimeAllocationVO(TimeAllocationVO timeAllocationVO)
45      {
46          // TODO implement loadTimeAllocationFromTimeAllocationVO
47          throw new UnsupportedOperationException("org.andromda.timetracker.domain.loadTimeAllocationFromTimeAllocationVO(TimeAllocationVO) not yet implemented.");
48  
49          /* A typical implementation looks like this:
50          TimeAllocation timeAllocation = this.load(timeAllocationVO.getId());
51          if (timeAllocation == null)
52          {
53              timeAllocation = TimeAllocation.Factory.newInstance();
54          }
55          return timeAllocation;
56          */
57      }
58  
59      /**
60       * {@inheritDoc}
61       */
62      @Override
63      public TimeAllocation timeAllocationVOToEntity(TimeAllocationVO timeAllocationVO)
64      {
65          // TODO verify behavior of timeAllocationVOToEntity
66          TimeAllocation entity = this.loadTimeAllocationFromTimeAllocationVO(timeAllocationVO);
67          this.timeAllocationVOToEntity(timeAllocationVO, entity, true);
68          return entity;
69      }
70  
71      /**
72       * {@inheritDoc}
73       */
74      @Override
75      public void timeAllocationVOToEntity(
76          TimeAllocationVO source,
77          TimeAllocation target,
78          boolean copyIfNull)
79      {
80          // TODO verify behavior of timeAllocationVOToEntity
81          super.timeAllocationVOToEntity(source, target, copyIfNull);
82      }
83  }