org.tkit.quarkus.jpa.test.User Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tkit-quarkus-jpa-tests Show documentation
Show all versions of tkit-quarkus-jpa-tests Show documentation
Module that contains tkit-quarkus-jpa related tests
The newest version!
package org.tkit.quarkus.jpa.test;
import jakarta.persistence.*;
import org.tkit.quarkus.jpa.models.TraceableEntity;
@Entity
@Table(name = "TEST_USER")
public class User extends TraceableEntity {
private String name;
private String email;
@ManyToOne(fetch = FetchType.EAGER)
@JoinColumn(name = "ADDRESS_GUID")
private Address address;
public Address getAddress() {
return address;
}
public void setAddress(Address address) {
this.address = address;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
public String getEmail() {
return email;
}
public void setEmail(String email) {
this.email = email;
}
}