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.TaskVO;
10
11 /**
12 * @see Task
13 */
14 public class TaskDaoImpl
15 extends TaskDaoBase
16 {
17 /**
18 * {@inheritDoc}
19 */
20 @Override
21 public void toTaskVO(
22 Task source,
23 TaskVO target)
24 {
25 // TODO verify behavior of toTaskVO
26 super.toTaskVO(source, target);
27 }
28
29 /**
30 * {@inheritDoc}
31 */
32 @Override
33 public TaskVO toTaskVO(final Task entity)
34 {
35 // TODO verify behavior of toTaskVO
36 return super.toTaskVO(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 Task loadTaskFromTaskVO(TaskVO taskVO)
45 {
46 // TODO implement loadTaskFromTaskVO
47 throw new UnsupportedOperationException("org.andromda.timetracker.domain.loadTaskFromTaskVO(TaskVO) not yet implemented.");
48
49 /* A typical implementation looks like this:
50 Task task = this.load(taskVO.getId());
51 if (task == null)
52 {
53 task = Task.Factory.newInstance();
54 }
55 return task;
56 */
57 }
58
59 /**
60 * {@inheritDoc}
61 */
62 @Override
63 public Task taskVOToEntity(TaskVO taskVO)
64 {
65 // TODO verify behavior of taskVOToEntity
66 Task entity = this.loadTaskFromTaskVO(taskVO);
67 this.taskVOToEntity(taskVO, entity, true);
68 return entity;
69 }
70
71 /**
72 * {@inheritDoc}
73 */
74 @Override
75 public void taskVOToEntity(
76 TaskVO source,
77 Task target,
78 boolean copyIfNull)
79 {
80 // TODO verify behavior of taskVOToEntity
81 super.taskVOToEntity(source, target, copyIfNull);
82 }
83 }