mirror of
https://github.com/ebean-orm/ebean.git
synced 2024-04-21 10:51:47 +00:00
27 lines
535 B
Java
27 lines
535 B
Java
package org.example.domain;
|
|
|
|
import javax.persistence.DiscriminatorValue;
|
|
import javax.persistence.Entity;
|
|
import javax.persistence.Inheritance;
|
|
|
|
@Inheritance
|
|
@DiscriminatorValue("DOG")
|
|
@Entity
|
|
public class ADog extends Animal {
|
|
|
|
private String registration;
|
|
|
|
public ADog(String name, String registration) {
|
|
super(name);
|
|
this.registration = registration;
|
|
}
|
|
|
|
public String getRegistration() {
|
|
return registration;
|
|
}
|
|
|
|
public void setRegistration(String registration) {
|
|
this.registration = registration;
|
|
}
|
|
}
|