skip to Main Content

Postgresql – What causes the PropertyReferenceException

I'm getting below error and couldn't figure it what causes the issue. 2024-10-19T11:26:28.546+05:30 WARN 9455 --- [rentsysapi] [nio-8080-exec-2] .m.m.a.ExceptionHandlerExceptionResolver : Resolved [org.springframework.data.mapping.PropertyReferenceException: No property 'asset' found for type 'AssetVehicle'] Asset Vehicle entity: @NoArgsConstructor @AllArgsConstructor @Getter @Setter @Entity @Table(name = "asset_vehicle",…

VIEW QUESTION

Postgresql – DATA/JPA Entity with String key – but replace data when try to save object with same key

I have this Entity class with nickname String as a key. @Data @Entity @Table(name="players") public class Player { @Id private String nickname; @Column(name="name") private String name; @Column(name="surname") private String surname; ... ... ... } Controller @PostMapping(value="/addPlayer", consumes = {MediaType.APPLICATION_JSON_VALUE}, produces…

VIEW QUESTION
Back To Top
Search