-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Plugin indeed doesn't work with @Transient properties for @Entity #80
Comments
Does it work outside of DataTables environment? |
Yup, tried that just few moments ago and received fully valid JSON, including transient fields :( |
I can only offer using @Formula annotation for now, see if that fits your use case. |
@iSosnitsky, thanks, I'll try it! |
It think you need to add: {
"data": "ownPlacesNum",
"orderable": false,
"searchable": false
} So that the column is not used as a filter. |
I was having the same issue as @kkaun with the @darrachequesne proposal I'm able to render the DataTable. I can live without the ordering and searching of that column but it would be great if we could |
Closed due to inactivity, please reopen if needed. |
Hi, I have an issue similar to this one: adding
@Transient
even to@Entity
field of simple type leads to DT warning/error :DataTables warning: table id=users - java.lang.IllegalArgumentException: Unable to locate Attribute with the the given name [placesNum] on this ManagedType [com.kirak.domain.User]
, afer which DT renders no data AKA "No matching records found".My sample field:
I tried to play with getters and their annotations - still the same.
Though I really don't want to get rid of this awesome extension and have some workaround, this issue
brings a little headache as it becomes nearly impossible to ignore any kinds of entities' properties. Hope it may remind to come up with something. Thanks.
The text was updated successfully, but these errors were encountered: