admin管理员组

文章数量:1129028

Note : seeing issues while serializing or deserializing "LocalDateTime" using Gson api. i have implemented type-adapters for the LocalDateTime. but i see error

Failed making field 'java.time.Duration#seconds' accessible; either increase its visibility or write a custom TypeAdapter for its declaring type.

Java version used : 22

below is the code snippet of the fields used

@EntityListeners(value = {TimestampEntityListener.class})
@Entity
@Table(name = "user")
@SecondaryTable(name = "user_company")
@RestWS(UserWS.class)
public class UserEntity{
   private Long id;

    private Long typeUserId;

    private String firstName;

    private java.time.LocalDateTime dateCreated;

    private java.time.LocalDateTime dateUpdated;

}


本文标签: