1 /*
2 * ----------------------------------------------------------------------
3 * Copyright (C) 2009 Enrique Lara (k957@68k.org)
4 *
5 * TinLizard is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public License
7 * as published by the Free Software Foundation; either version 3.0
8 * of the License, or (at your option) any later version.
9 *
10 * TinLizard 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. See the
13 * GNU Lesser General Public License for more details.
14 *
15 * You should have received a copy of the GNU Lesser General Public License
16 * along with TinLizard. If not, see http://www.gnu.org/licenses/.
17 * ----------------------------------------------------------------------
18 */
19 package tinlizard.dao.jpa;
20
21 import java.util.Date;
22
23 /***
24 * Objects that can be persisted to a Database.
25 */
26 public interface Persistable {
27 Integer getId();
28
29 String getName();
30
31 Date getCreated();
32
33 String getCreatedBy();
34
35 Date getLastModified();
36
37 String getLastModifiedBy();
38
39 void setId(final Integer id);
40
41 void setName(final String name);
42
43 void setCreated(final Date created);
44
45 void setCreatedBy(final String createdBy);
46
47 void setLastModified(final Date lastModified);
48
49 void setLastModifiedBy(final String lastModifiedBy);
50 }