Search in sources :

Example 1 with JansConfiguration

use of io.jans.orm.sql.model.JansConfiguration in project jans by JanssenProject.

the class SqlIdpAuthConfSample method main.

public static void main(String[] args) {
    // Prepare sample connection details
    SqlEntryManagerSample sqlEntryManagerSample = new SqlEntryManagerSample();
    // Create SQL entry manager
    SqlEntryManager sqlEntryManager = sqlEntryManagerSample.createSqlEntryManager();
    JansConfiguration jansConfiguration = sqlEntryManager.find(JansConfiguration.class, "ou=configuration,o=jans");
    LOG.info("Found jansConfiguration: " + jansConfiguration);
}
Also used : JansConfiguration(io.jans.orm.sql.model.JansConfiguration) SqlEntryManagerSample(io.jans.orm.sql.persistence.SqlEntryManagerSample) SqlEntryManager(io.jans.orm.sql.impl.SqlEntryManager)

Aggregations

SqlEntryManager (io.jans.orm.sql.impl.SqlEntryManager)1 JansConfiguration (io.jans.orm.sql.model.JansConfiguration)1 SqlEntryManagerSample (io.jans.orm.sql.persistence.SqlEntryManagerSample)1