updated code
This commit is contained in:
@@ -39,8 +39,8 @@ public class CompanyDocumentEntity extends BaseEntity {
|
||||
private UserWithCompanyEntity userWithCompany;
|
||||
|
||||
@ManyToOne
|
||||
@JoinColumn(name = "CATEGORY_ID")
|
||||
private CategoryEntity categoryEntity;
|
||||
@JoinColumn(name = "DOCUMENT_CATEGORY_ID")
|
||||
private DocumentCategoryEntity categoryEntity;
|
||||
|
||||
|
||||
}
|
||||
|
||||
@@ -6,9 +6,9 @@ import jakarta.persistence.Table;
|
||||
import lombok.Data;
|
||||
|
||||
@Entity
|
||||
@Table(name = "category")
|
||||
@Table(name = "document_category")
|
||||
@Data
|
||||
public class CategoryEntity extends BaseEntity {
|
||||
public class DocumentCategoryEntity extends BaseEntity {
|
||||
|
||||
@Column(name = "CATEGORY_NAME")
|
||||
private String categoryName;
|
||||
Reference in New Issue
Block a user