Issue with '_' in @Entity attributs (Java - Spring)
Issue with '_' in @Entity attributs (Java - Spring)
lelouchpf
Posts: 2Questions: 0Answers: 0
Hi,
I have a problem with DataTable. I have an @Entity(EntityExample) with some properties like:
private String aexample1;
private String bexample2;
private String cexample_ex3;
When I want to display this entity in DataTable, there is no problem, but when I sort with 'cexample_ex3', I have an error like "org.springframework.data.mapping.PropertyReferenceException: No property cexample found for type EntityExample!".
The JS for DataTable for this column is {data : "cexample_ex3"}
How can I resolve this ?
Thank you .
This discussion has been closed.
Replies
Thanks for your question - however, per the forum rules can you link to a test case showing the issue please. This will allow the issue to be debugged.
Information on how to create a test page, if you can't provide a link to your own page can be found here.
Thanks,
Allan
Hello,
Thanks for your reply.
I have found the problem, the JPA data maping convert my property with an underscore, so I have replace all by a camelCase format.
Thank you.