add table comment
This commit is contained in:
@@ -60,6 +60,10 @@ public class PublisherEntity extends PanacheEntityBase implements Serializable {
|
||||
@JoinColumn(name = "users_id", referencedColumnName = "id")
|
||||
public UsersEntity users;
|
||||
|
||||
@OneToMany(mappedBy = "publishers")
|
||||
public Collection<CommentEntity> comment;
|
||||
|
||||
|
||||
public static List<PublisherEntity> findByUsers(String uuid){
|
||||
return find("users_id", uuid).list();
|
||||
}
|
||||
|
Reference in New Issue
Block a user