File tree Expand file tree Collapse file tree 2 files changed +24
-13
lines changed
fj-core/src/main/java/org/fugerit/java/core/db/daogen Expand file tree Collapse file tree 2 files changed +24
-13
lines changed Original file line number Diff line number Diff line change 11package org .fugerit .java .core .db .daogen ;
22
3- import java .io .Serializable ;
43import java .math .BigDecimal ;
54
6- public class BaseIdFinder implements Serializable {
5+ public class BaseIdFinder extends GenericIdFinder < BigDecimal > {
76
87 /**
98 *
109 */
1110 private static final long serialVersionUID = 8019457921226089217L ;
1211
13- private BigDecimal id ;
14-
15- public BigDecimal getId () {
16- return id ;
17- }
18-
19- public void setId (BigDecimal id ) {
20- this .id = id ;
21- }
22-
2312 public void setId (long id ) {
24- this .id = new BigDecimal ( id );
13+ this .setId ( new BigDecimal ( id ) );
2514 }
2615
2716}
Original file line number Diff line number Diff line change 1+ package org .fugerit .java .core .db .daogen ;
2+
3+ import java .io .Serializable ;
4+
5+ public class GenericIdFinder <T > implements Serializable {
6+
7+ /**
8+ *
9+ */
10+ private static final long serialVersionUID = 8034233326089217L ;
11+
12+ private T id ;
13+
14+ public T getId () {
15+ return id ;
16+ }
17+
18+ public void setId ( T id ) {
19+ this .id = id ;
20+ }
21+
22+ }
You can’t perform that action at this time.
0 commit comments