Examples of JpaDataStore


Examples of org.jboss.aerogear.simplepush.server.datastore.JpaDataStore

        this.persistenceUnit = persistenceUnit;
    }

    @Override
    public synchronized void start(StartContext context) throws StartException {
        dataStore = new JpaDataStore(persistenceUnit);
    }
View Full Code Here

Examples of org.jboss.aerogear.simplepush.server.datastore.JpaDataStore

        if (couchdb != null) {
            return new CouchDBDataStore(couchdb.get("url").asText(), couchdb.get("dbName").asText());
        }
        final JsonNode jpa = dataStore.get("jpa");
        if (jpa != null) {
            return new JpaDataStore(jpa.get("persistenceUnit").asText());
        }
        throw new IllegalStateException("datastore must be specified");
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.