// Path: snacks_common/src/main/java/com/snacks/common/util/CustomDateSerializer.java
// public class CustomDateSerializer extends JsonSerializer<Date> {
// 
// 	@Override
// 	public void serialize(Date value, JsonGenerator jsonGenerator, SerializerProvider provider)
// 			throws IOException, JsonProcessingException {
// 		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// 		jsonGenerator.writeString(sdf.format(value));
// 	}
// }


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.snacks.common.util.CustomDateSerializer;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

package com.snacks.user.entity;





@Entity
@Table(name = "USER")
public class User {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "USER_ID")
	private Long id;
	@Column(name = "USER_NAME")
	private String userName;
	@Column(name = "USER_PSW")
	private String psw;
	@Column(name = "PHONE")
	private String phone;
	@Column(name = "CREATE_TIME")

// Path: snacks_common/src/main/java/com/snacks/common/util/CustomDateSerializer.java
// public class CustomDateSerializer extends JsonSerializer<Date> {
// 
// 	@Override
// 	public void serialize(Date value, JsonGenerator jsonGenerator, SerializerProvider provider)
// 			throws IOException, JsonProcessingException {
// 		SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
// 		jsonGenerator.writeString(sdf.format(value));
// 	}
// }


// Path: snacks_service/src/main/java/com/snacks/user/entity/User.java
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.snacks.common.util.CustomDateSerializer;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

package com.snacks.user.entity;





@Entity
@Table(name = "USER")
public class User {

	@Id
	@GeneratedValue(strategy = GenerationType.AUTO)
	@Column(name = "USER_ID")
	private Long id;
	@Column(name = "USER_NAME")
	private String userName;
	@Column(name = "USER_PSW")
	private String psw;
	@Column(name = "PHONE")
	private String phone;
	@Column(name = "CREATE_TIME")

	@JsonSerialize(using = CustomDateSerializer.class)
