In Netbeans ,created a simple entity class which implements Persistable. I get the following exception while trying to save:
net.sourceforge.floggy.persistence.FloggyException: You are trying to access a Persistable (Foodbean) entity that was not migrate. Please execute a migration first.
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.getRecordStore(+97)
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.getRecordStore(+22)
at net.sourceforge.floggy.persistence.impl.PersistableManagerImpl.save(+9)
This happens because your persistence class structure have changed between application invocations. You probably added/removed a field or changed its type from one invocation to another. If you are in developing mode you can delete your RMS files and restart your application to fix the issue. Usually the RMS files are stored at ${user.home}/j2mewtk. If you are on deployment mode you have to take in account these changes and build code to migrate your persistence class from the old structure to the new one. Check out some samples at http://floggy.sourceforge.net/migration-package.html