5 changed files with 42 additions and 3 deletions
@ -0,0 +1,27 @@ |
|||||
|
package com.mathvision.diet.entity; |
||||
|
|
||||
|
import lombok.*; |
||||
|
|
||||
|
import javax.persistence.*; |
||||
|
|
||||
|
@Builder |
||||
|
@AllArgsConstructor |
||||
|
@NoArgsConstructor |
||||
|
@Getter |
||||
|
@Setter |
||||
|
@Entity |
||||
|
@Table(name = "icon") |
||||
|
public class Icon { |
||||
|
@Id |
||||
|
@GeneratedValue(strategy = GenerationType.IDENTITY) |
||||
|
@Column(name = "id", nullable = false) |
||||
|
private Long id; |
||||
|
|
||||
|
@Column(name = "`key`", nullable = false, length = 64) |
||||
|
private String key; |
||||
|
|
||||
|
@Lob |
||||
|
@Column(name = "icon", nullable = false) |
||||
|
private String icon; |
||||
|
|
||||
|
} |
@ -0,0 +1,7 @@ |
|||||
|
package com.mathvision.diet.repository; |
||||
|
|
||||
|
import com.mathvision.diet.entity.Icon; |
||||
|
import org.springframework.data.jpa.repository.JpaRepository; |
||||
|
|
||||
|
public interface IconRepository extends JpaRepository<Icon, Long> { |
||||
|
} |
Loading…
Reference in new issue