daily pastebin goal
24%
SHARE
TWEET

Untitled

a guest Apr 27th, 2016 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class MyClass {
  2.  
  3.     String firstName
  4.     String lastName
  5.  
  6.     static constraints = {
  7.         firstName (blank: false)
  8.         lastName  (blank: false)
  9.     }
  10. }a
  11.    
  12. dataSource {
  13.     url = 'jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS=(PROTOCOL=TCP)(HOST=<HOST_NAME>)(PORT=<PORT_NUMBER>))(CONNECT_DATA=(SERVICE_NAME=<SERVICE_NAME_URL>)))'
  14.     username = 'wl_user'
  15.     password = 'my_password'
  16.     dbCreate = 'update'
  17.     logSql = true
  18.     driverClassName = 'oracle.jdbc.OracleDriver'
  19.     dialect = 'org.hibernate.dialect.Oracle10gDialect'
  20.     pooled = true
  21.     properties {
  22.         validationQuery = 'select 1 dbcp_connection_test from dual'
  23.         testOnBorrow = true
  24.         testOnReturn = true
  25.         maxActive = 4
  26.         maxIdle = 1
  27.         initialSize = 0
  28.     }
  29. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top