Skip to content

Commit

Permalink
Merge pull request #16 from UdL-EPS-SoftArch/feat/proposal
Browse files Browse the repository at this point in the history
Implemented Proposal class
  • Loading branch information
rogargon authored Feb 20, 2025
2 parents e6a3a2e + 33b35ff commit 26028ca
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions src/main/java/cat/udl/eps/softarch/tfgfinder/domain/Proposal.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
package cat.udl.eps.softarch.tfgfinder.domain;

import java.util.Collection;
import jakarta.persistence.*;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.Size;
import lombok.Data;
import lombok.EqualsAndHashCode;



@Entity
@EqualsAndHashCode(callSuper=true)
@Data

public class Proposal extends UriEntity<Long> {

@Id
@GeneratedValue()
private Long id;


@NotBlank
@Size(min = 12, max = 120)
private String title;

@NotBlank
@Size(min = 50, max = 500)
private String description;

@NotBlank
@Size(min = 5, max = 50)
private String timing;

@NotBlank
@Size(min = 5, max = 50)
private String speciality;

@NotBlank
@Size(min = 5, max = 50)
private String kind;

@ElementCollection
private Collection<String> keywords;

@ManyToOne
private User user; // Reference to the User entity

}

0 comments on commit 26028ca

Please sign in to comment.