mirror of
https://github.com/tiennm99/java-design-patterns.git
synced 2026-05-16 16:59:24 +00:00
Changed package naming across all examples.
This commit is contained in:
@@ -0,0 +1,19 @@
|
||||
package com.iluwatar.servicelayer.common;
|
||||
|
||||
import javax.persistence.Inheritance;
|
||||
import javax.persistence.InheritanceType;
|
||||
import javax.persistence.MappedSuperclass;
|
||||
import javax.persistence.Version;
|
||||
|
||||
/**
|
||||
*
|
||||
* Base class for entities.
|
||||
*
|
||||
*/
|
||||
@MappedSuperclass
|
||||
@Inheritance(strategy=InheritanceType.TABLE_PER_CLASS)
|
||||
public class BaseEntity {
|
||||
|
||||
@Version
|
||||
private Long version;
|
||||
}
|
||||
Reference in New Issue
Block a user