01: /*
02: *
03: * (c) Copyright 2004 - 2007 osbl development team.
04: *
05: * This file is part of the osbl (http://osbl.wilken.de).
06: *
07: * the osbl is free software; you can redistribute it and/or modify
08: * it under the terms of the GNU General Public License
09: * as published by the Free Software Foundation; either version 2.1
10: * of the License, or (at your option) any later version.
11: *
12: * Please see COPYING for the complete licence.
13: */
14: package org.osbl.riskmanagement.model;
15:
16: import org.conform.Property;
17: import org.conform.validator.NumberRange;
18: import org.osbl.identity.model.Identity;
19: import org.osbl.persistence.model.TreeNodeEntity;
20:
21: import java.math.BigDecimal;
22: import java.sql.Date;
23:
24: /**
25: * @author hengels
26: * @version $Revision: 840 $
27: */
28: public class RiskType extends TreeNodeEntity<Classification> {
29: @Property(mandatory="true")
30: Date validFrom;
31:
32: Date validUntil;
33:
34: @Property(mandatory="true")
35: String name;
36: String description;
37:
38: @Property(mandatory="true")
39: Identity responsible;
40:
41: @Property(mandatory="true")
42: @NumberRange(from="0")
43: BigDecimal amount;
44:
45: public Date getValidFrom() {
46: return validFrom;
47: }
48:
49: public void setValidFrom(Date validFrom) {
50: this .validFrom = validFrom;
51: }
52:
53: public Date getValidUntil() {
54: return validUntil;
55: }
56:
57: public void setValidUntil(Date validUntil) {
58: this .validUntil = validUntil;
59: }
60:
61: public String getName() {
62: return name;
63: }
64:
65: public void setName(String name) {
66: this .name = name;
67: }
68:
69: public String getDescription() {
70: return description;
71: }
72:
73: public void setDescription(String description) {
74: this .description = description;
75: }
76:
77: public Identity getResponsible() {
78: return responsible;
79: }
80:
81: public void setResponsible(Identity responsible) {
82: this .responsible = responsible;
83: }
84:
85: public BigDecimal getAmount() {
86: return amount;
87: }
88:
89: public void setAmount(BigDecimal amount) {
90: this .amount = amount;
91: }
92:
93: public String toString() {
94: return name;
95: }
96: }
|