Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

entity-edit #1

Merged
merged 1 commit into from
Jul 1, 2024
Merged

entity-edit #1

merged 1 commit into from
Jul 1, 2024

Conversation

AungKyaw-Myint
Copy link
Collaborator

adding column names and entity validation

adding column names and entity validation
public class AcademicResource {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(name = "name", nullable = false)
private String name;
private String body;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use the word description instead of body?

@phurpawangchuk
Copy link
Collaborator

It is fine.

@phurpawangchuk phurpawangchuk merged commit 927f137 into develop Jul 1, 2024
private String name;

@Column(name = "body", nullable = false)
private String body;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use the word description instead of body here as well?

private LocalTime eventTime;

Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One more thing, is there a purpose of having these two fields separate?

private LocalDate eventDate;
private LocalTime eventTime;

I mean, can we combine them into one field?

private String title;

@Column(name = "body")
private String body;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use the word description instead of body here as well?

public class Discussion {

@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
private Long id;

@Column(name = "title", nullable = false)
private String title;
private String body;
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we please use the word description instead of body here as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants