Skip to content

Commit

Permalink
delete the embedable annotation
Browse files Browse the repository at this point in the history
  • Loading branch information
liberhe committed Jan 26, 2024
1 parent 5bf643c commit 043d3ad
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
6 changes: 4 additions & 2 deletions src/main/java/com/dl/officialsite/bounty/Bounty.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
import org.springframework.data.jpa.domain.support.AuditingEntityListener;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.time.LocalDateTime;
import java.util.Date;

Expand All @@ -26,8 +27,9 @@ public class Bounty {
/**
* 创建岗位人地址
*/
@Embedded
private Member member;
@Column(length = 42)
@NotNull
private String creator;

private String title;

Expand Down
1 change: 0 additions & 1 deletion src/main/java/com/dl/officialsite/member/Member.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
@EqualsAndHashCode(onlyExplicitlyIncluded = true)
@EntityListeners(AuditingEntityListener.class)
@Entity
@Embeddable
@DynamicUpdate
@Table(name = "member", schema = "dl", uniqueConstraints = {
@UniqueConstraint(name = "address", columnNames = {"address"}),
Expand Down

0 comments on commit 043d3ad

Please sign in to comment.