Guest User

Untitled

a guest
Jun 30th, 2018
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. public ServerRuntime getCoreRuntime() {
  2. return ServerRuntime.builder()
  3. .addConfig("cayenne-project.xml")
  4. .jdbcDriver("oracle.jdbc.OracleDriver")
  5. .url("jdbc:oracle:thin:@localhost:1521:SID")
  6. .user("sysdba")
  7. .password("1")
  8. .maxConnections(4)
  9. .addModule(binder -> binder.bind(JdbcEventLogger.class)
  10. .to(FormattedSlf4jJdbcEventLogger.class))
  11. .build();
  12. }
Add Comment
Please, Sign In to add comment