Community
Participate
Working Groups
I'm tryng to do this Aspect ... // merge public void Address.merge1() { //JPA Entity Manager EntityManager ent = getEntityManager(); Address a = ent.merge(this); ent.flush(); this.id = merged.getId(); } .... But the errors are showed at the prints. I've tried in two ways.
Created attachment 179071 [details] Prints Attaching screenshots.
Is your Aspect inherits from Address ? Is your Aspect a persistent Entity ( in JPA terms) ? Is so, you have certainly to cast with an Address class. the prototype of method merge is : <T> T merge(T entity) so "this" must be persistent ...
Yes, I checked this items. You can close this bug. I need to send more details next time. I don't remember what I did that day.