//:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** @author John Miller * @version 1.0 * @date Mon Jan 26 14:56:24 EST 2015 * @see LICENSE (MIT style license file). */ import beans.BeanProperty //:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: /** The `Employee2` class is used to create example Scala Beans for Jackson Json demo. * @see http://www.journaldev.com/2324/jackson-json-processing-api-in-java-example-tutorial */ class Employee2 { @BeanProperty var id = 0 @BeanProperty var name = "" @BeanProperty var permanent = false @BeanProperty var address: Address2 = null @BeanProperty var phoneNumbers: Array [Long] = null @BeanProperty var role = "" @BeanProperty var cities: List [String] = null @BeanProperty var properties: Map [String, String] = null override def toString: String = { "***** Employee Details *****\n" + "ID = " + id + "\n" + "Name = " + name + "\n" + "Permanent = " + permanent + "\n" + "Role = " + role + "\n" + "Ph. Numbers = " + phoneNumbers.deep + "\n" + "Address = " + address + "\n" + "Cities = " + cities + "\n" + "Properties = " + properties + "\n" + "*****************************" } // toString } // Employee2 class