使用 postgres 和 springboot 时遇到问题

问题描述 投票:0回答:0

package com.abc.calendar.calendarapi.model;

import lombok.*;

import java.util.Date;
import java.util.List;
import java.util.Map;



import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

@Getter
@Setter
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "calendars") 

public class Calendar {

    @Id
    private String event_id;
    private String company_id;
    private String title;
    private String description;
    private Date start_time;
    private Date end_time;
    private String location;
    private String color;
    private String status;

    private List<String> tags;

    // private List<Participant> participants;

    // private Organizer organizer;
    // private List<Participant> participants;
    // private List<Attachment> attachments;
    // private Recurring recurring;
    // private List<Filter> default_filters;
    // private Map<String, List<String>> user_filters;
   
}

2024-05-23T17:53:18.313-04:00 INFO 19864 --- [calendarapi] [ main] c.a.c.c.CalendarapiApplication :使用 PID 19864 的 Java 21.0.3 启动 CalendarapiApplication (C:\Users aron\Desktop\ABC - RIIPE

postgresql spring-boot jdbc
© www.soinside.com 2019 - 2024. All rights reserved.