1 /**
2 * Copyright 2005-2006 the original author or authors.
3 *
4 * Licensed under the Gnu General Pubic License, Version 2.0 (the
5 * "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.opensource.org/licenses/gpl-license.php
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
13 * See the Gnu General Public License for more details.
14 */
15 package org.figure8.join.businessobjects.commons;
16
17 import org.figure8.join.core.EntityObject;
18 /**
19 * This is an entity that helps defining a deployment target. Deployment
20 * targets may be used to specify the environment update process or to better
21 * categorize artifacts, documents, etc ...
22 * @author <a href="mailto:laurent.broudoux@free.fr">Laurent Broudoux</a>
23 * @version $Revision: 1.2 $
24 *
25 * @hibernate.class table="join_targets" lazy="true"
26 * @hibernate.cache usage="read-write"
27 *
28 * @hibernate.query name="join.target_findByName" query="from Target tgt where tgt.name = :name"
29 */
30 public class Target extends EntityObject{
31
32
33
34 /** This deployment target name */
35 private String name;
36 /** This deployment target description */
37 private String description;
38
39
40
41
42 /** Creates a new instance of Target */
43 public Target(){
44 }
45
46 /**
47 * Creates a new instance of Target with mandatory attributes
48 * @param name This target name
49 * @param description This target description
50 */
51 public Target(String name, String description){
52 this.name = name;
53 this.description = description;
54 }
55
56
57
58
59 /**
60 * @hibernate.property column="s_name"
61 * not-null="true" unique="true"
62 * length="40"
63 * @return The name of this deployment target
64 */
65 public String getName(){
66 return name;
67 }
68 /** @param name The name of this target */
69 public void setName(String name){
70 this.name = name;
71 }
72
73 /**
74 * @hibernate.property column="s_description"
75 * not-null="true" length="255"
76 * @return
77 */
78 public String getDescription(){
79 return description;
80 }
81 /** @param description The description of this target */
82 public void setDescription(String description){
83 this.description = description;
84 }
85 }