1    /*
2     * Copyright 2009 :torweg free software group
3     *
4     * This program is free software: you can redistribute it and/or modify
5     * it under the terms of the GNU General Public License as published by
6     * the Free Software Foundation, either version 3 of the License, or
7     * (at your option) any later version.
8     * 
9     * This program is distributed in the hope that it will be useful,
10    * but WITHOUT ANY WARRANTY; without even the implied warranty of
11    * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12    * GNU General Public License for more details.
13    * 
14    * You should have received a copy of the GNU General Public License
15    * along with this program.  If not, see <http://www.gnu.org/licenses/>.
16    *
17    */
18   package org.torweg.pulse.util.entity;
19   
20   import javax.persistence.MappedSuperclass;
21   import javax.xml.bind.annotation.XmlAccessType;
22   import javax.xml.bind.annotation.XmlAccessorType;
23   
24   import org.torweg.pulse.util.INameable;
25   
26   /**
27    * a very basic abstract entity containing a name field.
28    * 
29    * @see AbstractNamedEntity
30    * @see INameable
31    * @author Thomas Weber
32    * @version $Revision: 1236 $
33    */
34   @MappedSuperclass
35   @XmlAccessorType(XmlAccessType.NONE)
36   public class AbstractNamableEntity extends AbstractNamedEntity implements
37           INameable {
38   
39       /**
40        * serialVersionUID.
41        */
42       private static final long serialVersionUID = -1638710707494020099L;
43   
44       /**
45        * Sets the name of the entity.
46        * <p>
47        * Overriding methods must ensure to call {@code super.setName(String)} to
48        * actually set the name property.
49        * </p>
50        * 
51        * @param n
52        *            the name to set
53        * @see org.torweg.pulse.util.INameable#setName(java.lang.String)
54        */
55       @Override
56       public void setName(final String n) { // NOPMD
57           super.setName(n);
58       }
59   
60   }
61