Ignore:
Timestamp:
10/18/22 00:50:33 (2 years ago)
Author:
Gjoko <goko_kostadinov@…>
Branches:
master
Children:
763289e
Parents:
401a211
Message:

Adding register customer functionality

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/edu/gjoko/schedlr/entity/Service.java

    r401a211 r204464d  
    55import lombok.NoArgsConstructor;
    66import lombok.Setter;
     7import org.springframework.data.annotation.CreatedDate;
     8import org.springframework.data.annotation.LastModifiedDate;
     9import org.springframework.data.jpa.domain.support.AuditingEntityListener;
    710
    811import javax.persistence.*;
     12import java.sql.Timestamp;
     13import java.time.LocalDateTime;
    914
    1015@Entity
     16@EntityListeners(AuditingEntityListener.class)
    1117@Table(name = "service")
    1218@Getter
     
    3238    @JoinColumn(name = "business_id")
    3339    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;
    3448}
Note: See TracChangeset for help on using the changeset viewer.