|
@@ -5,39 +5,19 @@
|
|
|
|
|
|
|
|
package scot.carricksoftware.grants.domains.text;
|
|
package scot.carricksoftware.grants.domains.text;
|
|
|
|
|
|
|
|
-import jakarta.persistence.Column;
|
|
|
|
|
import jakarta.persistence.Entity;
|
|
import jakarta.persistence.Entity;
|
|
|
import jakarta.persistence.JoinColumn;
|
|
import jakarta.persistence.JoinColumn;
|
|
|
-import jakarta.persistence.Lob;
|
|
|
|
|
import jakarta.persistence.ManyToOne;
|
|
import jakarta.persistence.ManyToOne;
|
|
|
-import scot.carricksoftware.grants.BaseEntity;
|
|
|
|
|
import scot.carricksoftware.grants.domains.people.Person;
|
|
import scot.carricksoftware.grants.domains.people.Person;
|
|
|
|
|
|
|
|
@Entity
|
|
@Entity
|
|
|
-public class PersonText extends BaseEntity {
|
|
|
|
|
|
|
+public class PersonText extends Text {
|
|
|
|
|
|
|
|
@SuppressWarnings("JpaDataSourceORMInspection")
|
|
@SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
@ManyToOne
|
|
@ManyToOne
|
|
|
@JoinColumn(name = "`person_id`")
|
|
@JoinColumn(name = "`person_id`")
|
|
|
private Person person;
|
|
private Person person;
|
|
|
|
|
|
|
|
- @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
|
|
- @Column(name = "`level`")
|
|
|
|
|
- private String level;
|
|
|
|
|
-
|
|
|
|
|
- @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
|
|
- @Column(name = "`order`")
|
|
|
|
|
- private String order;
|
|
|
|
|
-
|
|
|
|
|
- @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
|
|
- @Column(name = "`heading`")
|
|
|
|
|
- private String heading;
|
|
|
|
|
-
|
|
|
|
|
- @SuppressWarnings("JpaDataSourceORMInspection")
|
|
|
|
|
- @Column(name = "`content`")
|
|
|
|
|
- @Lob
|
|
|
|
|
- private String content;
|
|
|
|
|
-
|
|
|
|
|
public Person getPerson() {
|
|
public Person getPerson() {
|
|
|
return person;
|
|
return person;
|
|
|
}
|
|
}
|
|
@@ -46,35 +26,5 @@ public class PersonText extends BaseEntity {
|
|
|
this.person = person;
|
|
this.person = person;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
- public String getLevel() {
|
|
|
|
|
- return level;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setLevel(String level) {
|
|
|
|
|
- this.level = level;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getOrder() {
|
|
|
|
|
- return order;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setOrder(String order) {
|
|
|
|
|
- this.order = order;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getHeading() {
|
|
|
|
|
- return heading;
|
|
|
|
|
- }
|
|
|
|
|
|
|
|
|
|
- public void setHeading(String heading) {
|
|
|
|
|
- this.heading = heading;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public String getContent() {
|
|
|
|
|
- return content;
|
|
|
|
|
- }
|
|
|
|
|
-
|
|
|
|
|
- public void setContent(String content) {
|
|
|
|
|
- this.content = content;
|
|
|
|
|
- }
|
|
|
|
|
}
|
|
}
|