/src/mpv5/db/common/SerializableEntity.java
Java | 51 lines | 23 code | 8 blank | 20 comment | 0 complexity | 37f68a20978002733c8f2249b8d0a28e MD5 | raw file
Possible License(s): LGPL-3.0, Apache-2.0, GPL-3.0, GPL-2.0, AGPL-3.0, JSON, BSD-3-Clause
- /*
- * To change this template, choose Tools | Templates
- * and open the template in the editor.
- */
- package mpv5.db.common;
- /**
- *
- * @author Andreas
- */
- public class SerializableEntity {
- private Long id;
- private String tablename;
- public SerializableEntity() {
- }
- public SerializableEntity(DatabaseObject.Entity v) {
- this.id = Long.valueOf(v.getValue().toString());
- this.tablename = v.getKey().getDbIdentity();
- }
- /**
- * @return the id
- */
- public Long getId() {
- return id;
- }
- /**
- * @param id the id to set
- */
- public void setId(Long id) {
- this.id = id;
- }
- /**
- * @return the tablename
- */
- public String getTablename() {
- return tablename;
- }
- /**
- * @param tablename the tablename to set
- */
- public void setTablename(String tablename) {
- this.tablename = tablename;
- }
- }