Skip to content

Commit

Permalink
feat: removed @DaTa annotation from entities
Browse files Browse the repository at this point in the history
  • Loading branch information
miguel-merlin committed Nov 3, 2024
1 parent 7baea79 commit 61a3bc0
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 20 deletions.
7 changes: 3 additions & 4 deletions src/main/java/com/sitblueprint/admin/model/blogs/Blog.java
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
package com.sitblueprint.admin.model.blogs;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

import java.time.LocalDateTime;

@Entity
@Table(name = "blogs")
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Blog {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
package com.sitblueprint.admin.model.users;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

import java.util.Set;

@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class AuthUser {
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/sitblueprint/admin/model/users/Role.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

@Entity
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Role {
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/sitblueprint/admin/model/users/Team.java
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
package com.sitblueprint.admin.model.users;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

@Entity
@Table(name = "teams")
@Data
@Setter
@Getter
@NoArgsConstructor
@AllArgsConstructor
public class Team {
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/sitblueprint/admin/model/users/User.java
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
package com.sitblueprint.admin.model.users;

import jakarta.persistence.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.*;

import java.time.LocalDateTime;
import java.util.HashSet;
import java.util.Set;

@Entity
@Table(name = "users")
@Data
@NoArgsConstructor
@AllArgsConstructor
@Setter
@Getter
public class User {
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
Expand Down

0 comments on commit 61a3bc0

Please sign in to comment.