SHARE
TWEET

Untitled

a guest Jul 22nd, 2019 74 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. private val students = mutableListOf<Student>()
  2. //Following annotation shows a filled database when application launches
  3. @PostConstruct
  4. private fun init(){
  5.     val placedata1: Boolean = resource.add(Resource("gf","fhf,67"))
  6.     val placedata2: Boolean = resource.add(Resource("gf","fhf,67"))
  7.  
  8.     students.add(
  9.             Student(35446,"James12","qwerty","Jamesd@icloud.com", placedata1, Instant.now(), TimeZone.getTimeZone("Asia/Kolkata")))
  10.     students.add(
  11.             Student(46666,"Thomas3556","srdg54","thomas12@gmail.com", placedata2, Instant.now(),TimeZone.getTimeZone("Asia/Kolkata")))
  12. }
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