Before starting to work with persistent objects , you need to prepare the database: to build the system tables that are storing the information about persistent objects and their fields.

The following piece of code will do it:

package com.user;

import com.jslope.persistence.Deployer;

public class Main {
    public static void main(String Aargs[]) {
        try {
            Deployer.main(null);
        catch (Exception e) {
            e.printStackTrace();
        }
    }
}

Run it only once (per database), before starting to work with persistent objects.

Previous page Tree of contents Next page