All the posts and topics that contain only an error report will be moved here after the error is corrected. This is to ensure that when users view a question in ETS Viewer, the "Discuss" button will not indicate the presence of a discussion that adds no value to the question.
Moderators: Site Manager , fjwalraven
kemosabe
Posts: 9 Joined: Fri Oct 09, 2015 3:52 am
Contact:
Post
by kemosabe » Sat Feb 25, 2017 4:12 pm
Option 3 doesn't take property access into account.
For example, I was able to get away with this monstrosity:
Code: Select all
@Entity
@Access(AccessType.PROPERTY)
public class Customer {
private Map<String,Object> data = new HashMap<>();
@Id
public Long getId() {
return (Long) data.get("id");
}
public void setId(Long id) {
data.put("id", id);
}
public String getName() {
return (String) data.get("name");
}
public void setName(String name) {
data.put("name", name);
}
}
Online
admin
Site Admin
Posts: 10061 Joined: Fri Sep 10, 2010 9:26 pm
Contact:
Post
by admin » Sun Feb 26, 2017 12:41 am
You are right. Fixed.
thank you for your feedback!
Paul.
If you like our products and services, please help us by posting your
review here .
Users browsing this forum: No registered users and 60 guests