Changeset 204464d for src/main/java/edu/gjoko/schedlr/entity/Service.java
- Timestamp:
- 10/18/22 00:50:33 (2 years ago)
- Branches:
- master
- Children:
- 763289e
- Parents:
- 401a211
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/entity/Service.java
r401a211 r204464d 5 5 import lombok.NoArgsConstructor; 6 6 import lombok.Setter; 7 import org.springframework.data.annotation.CreatedDate; 8 import org.springframework.data.annotation.LastModifiedDate; 9 import org.springframework.data.jpa.domain.support.AuditingEntityListener; 7 10 8 11 import javax.persistence.*; 12 import java.sql.Timestamp; 13 import java.time.LocalDateTime; 9 14 10 15 @Entity 16 @EntityListeners(AuditingEntityListener.class) 11 17 @Table(name = "service") 12 18 @Getter … … 32 38 @JoinColumn(name = "business_id") 33 39 private Business business; 40 41 @Column(name = "created") 42 @CreatedDate 43 private LocalDateTime created; 44 45 @Column(name = "modified") 46 @LastModifiedDate 47 private LocalDateTime modified; 34 48 }
Note:
See TracChangeset
for help on using the changeset viewer.