
| Key: |
OPENJPA-174
|
| Type: |
Bug
|
| Status: |
Resolved
|
| Resolution: |
Fixed
|
| Priority: |
Major
|
| Assignee: |
Unassigned
|
| Reporter: |
Jeffrey Blattman
|
| Votes: |
0
|
| Watchers: |
0
|
|
If you were logged in you would be able to see more operations.
|
|
|
|
File Attachments:
|
| |
Size |
|
abstracttest.zip |
2007-03-19 05:37 PM |
Jeffrey Blattman |
23 kB |
|
pom.zip |
2007-03-19 05:35 PM |
Jeffrey Blattman |
82 kB |
|
|
Environment:
|
|
|
| Resolution Date: |
19/Mar/07 09:47 PM
|
|
class B extends A
A is abstract
B is concrete
i have persisted an instance of B. now i try:
A a = em.find(A.class, anId);
openjpa fails with:
... Cannot create new application identity instance for abstract class "class A"
if i change the find to:
A a = em.find(B.class, anId);
openjpa works okay.
note that i have two test cases. one is my real model, and one is the simple A and B class example above. my real model fails, where the simple A, B class example works as expected. so, it's is either a side affect of some other issue, or there is something wrong in my model and the error message is misleading or lacking information.
|
|
Description
|
class B extends A
A is abstract
B is concrete
i have persisted an instance of B. now i try:
A a = em.find(A.class, anId);
openjpa fails with:
... Cannot create new application identity instance for abstract class "class A"
if i change the find to:
A a = em.find(B.class, anId);
openjpa works okay.
note that i have two test cases. one is my real model, and one is the simple A and B class example above. my real model fails, where the simple A, B class example works as expected. so, it's is either a side affect of some other issue, or there is something wrong in my model and the error message is misleading or lacking information. |
Show » |
|
to run the test case you need a derby network server running on localhost and default port.