Commit 0ed0f25e authored by litengwei's avatar litengwei

电力设备问题

parent a2e8b014
package com.yeejoin.amos.fas.dao.entity; package com.yeejoin.amos.fas.dao.entity;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import org.springframework.data.annotation.CreatedDate; import org.springframework.data.annotation.CreatedDate;
import org.springframework.data.jpa.domain.support.AuditingEntityListener; import org.springframework.data.jpa.domain.support.AuditingEntityListener;
...@@ -17,14 +19,15 @@ import java.util.Date; ...@@ -17,14 +19,15 @@ import java.util.Date;
@MappedSuperclass @MappedSuperclass
@EntityListeners(AuditingEntityListener.class) @EntityListeners(AuditingEntityListener.class)
public class BasicEntity /*extends Resource*/ implements Serializable{ public class BasicEntity /*extends Resource*/ implements Serializable{
private static final long serialVersionUID = -5464322936854328207L; private static final long serialVersionUID = -5464322936854328207L;
/** /**
* id * id
*/ */
@JsonSerialize(using = ToStringSerializer.class)
private long id; private long id;
@CreatedDate @CreatedDate
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment