mirror of
https://github.com/Athou/commafeed.git
synced 2026-03-21 21:37:29 +00:00
package refactoring
This commit is contained in:
26
src/main/java/com/commafeed/backend/model/AbstractModel.java
Normal file
26
src/main/java/com/commafeed/backend/model/AbstractModel.java
Normal file
@@ -0,0 +1,26 @@
|
||||
package com.commafeed.backend.model;
|
||||
|
||||
import java.io.Serializable;
|
||||
|
||||
import javax.persistence.GeneratedValue;
|
||||
import javax.persistence.GenerationType;
|
||||
import javax.persistence.Id;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
|
||||
@SuppressWarnings("serial")
|
||||
@MappedSuperclass
|
||||
public abstract class AbstractModel implements Serializable {
|
||||
|
||||
@Id
|
||||
@GeneratedValue(strategy = GenerationType.AUTO)
|
||||
private Long id;
|
||||
|
||||
public Long getId() {
|
||||
return id;
|
||||
}
|
||||
|
||||
public void setId(Long id) {
|
||||
this.id = id;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user