Make sure to close your PersistenceManager instance in getCategories().
Are you seeing the original error or a different stack trace?
- Jason
On Sun, Sep 6, 2009 at 7:06 AM, Bob L. wrote:
>
> Oh mine! It occurred again. JDO looks quite fragile.
> Is there any wrong with following code?
>
> @Pe
> Oh mine! It occurred again. JDO looks quite fragile.
Nothing fragile about the persistence process. You simply have to
define your classes as persistent and enhance them, and have the
enhanced ones in the CLASSPATH. Not hard
--~--~-~--~~~---~--~~
You received thi
Oh mine! It occurred again. JDO looks quite fragile.
Is there any wrong with following code?
@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Category {
@PrimaryKey
@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
private Long id;
What a shame! I forgot this line on the class: @PersistenceCapable
(identityType = IdentityType.APPLICATION)
Thx.
On Sep 1, 10:20 pm, "Bob L." wrote:
> 1. It is in CLASSPATH as all classes are in the project.
> 2. I basically copied from the example, so it should not be a problem
> about annota
1. It is in CLASSPATH as all classes are in the project.
2. I basically copied from the example, so it should not be a problem
about annotations.
I don't know how to check "hidden by an unenhanced version". Someone
said I can find the clues in the debug-level logging, but how can I
view them?
On
> The class "The class "x.Category" is not persistable. This means that
> it either hasnt been enhanced,
> or that the enhanced version of the file is not in the CLASSPATH (or is
> hidden by an unenhanced version),
> or the Meta-Data/annotations for the class are not found.
And when you've check