| Summary: | No way to call a method entityManager.merge(x); | ||||||
|---|---|---|---|---|---|---|---|
| Product: | [Tools] AspectJ | Reporter: | Ed Pichler <duduzerah> | ||||
| Component: | IDE | Assignee: | aspectj inbox <aspectj-inbox> | ||||
| Status: | CLOSED INVALID | QA Contact: | |||||
| Severity: | blocker | ||||||
| Priority: | P3 | CC: | jeanlouis.pasturel | ||||
| Version: | 1.6.10 | ||||||
| Target Milestone: | --- | ||||||
| Hardware: | PC | ||||||
| OS: | Windows Vista | ||||||
| Whiteboard: | |||||||
| Attachments: |
|
||||||
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. |
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.