Skip to content

Commit

Permalink
fix: Updated annotations for text fields and added SQL dialect settings
Browse files Browse the repository at this point in the history
  • Loading branch information
sichoi42 committed Jul 21, 2024
1 parent 887f661 commit b557cd3
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public class Autobiography {
@Column
private String title;

@Column(length = 65535)
@Lob
private String content;

@Column
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ public class BookContent {
@Column(nullable = false)
private Integer pageNumber;

@Column(length = 65535)
@Lob
private String pageContent;
/* } 고유 정보 */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public class Comment {
@Column
private Long parentCommentId;

@Column(length = 65535)
@Lob
private String content;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public class Conversation {
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(length = 65535)
@Lob
private String content;

@Column(nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public class NoticeHistory {
@Column(nullable = false)
private String title;

@Column(length = 65535)
@Lob
private String content;

@Column(nullable = false)
Expand Down
1 change: 1 addition & 0 deletions src/main/resources/application-local.yml.example
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ spring:
new_generator_mappings: true
format_sql: true
show_sql: true
dialect: org.hibernate.dialect.MariaDBDialect

jwt:
key: 0190ab45-7e42-7a3f-9dec-726ddf778076
Expand Down
1 change: 1 addition & 0 deletions src/test/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ spring:
show_sql: true
format_sql: true
globally_quoted_identifiers: true
dialect: org.hibernate.dialect.H2Dialect

jwt:
key: blablablablablablablablablablablabla
Expand Down

0 comments on commit b557cd3

Please sign in to comment.