As a means of conveniance, could I request that the EntityHome class add a simple save
method as follows?
public void save(){
if (this.isManaged())
update();
else
persist();
}
A very small method, but it would help, as I would use this ~80% of time instead of the persist and update methods.
I'd add a JIRA feature request, but I can't see a means to do so, plus I'm unaware if there are valid reasons why a method like this shouldn't be implemented.
Add this to JIRA.
You need to create a jboss.com login and make sure you are logged in.