mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-22 15:10:02 +00:00
#2069 - Add ebean-querybean, querybean-generator and kotlin-querybean-generator as modules
This commit is contained in:
1 parent
bc055fea25
commit
038db79737
140 files changed
+11583
No files matched your search
@@ -0,0 +1,26 @@
|
||||
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;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user