updated defaults

This commit is contained in:
Tony Tam 2012-09-20 23:04:52 -07:00
parent 21265454ab
commit 0504f68b41
5 changed files with 8 additions and 8 deletions

View File

@ -3,7 +3,7 @@ package com.wordnik.petstore.model
import scala.reflect.BeanProperty
class Category {
@BeanProperty var id: Long = _
@BeanProperty var id: Long = 0L
@BeanProperty var name: String = _
override def toString: String = {
val sb = new StringBuilder

View File

@ -4,11 +4,11 @@ import java.util.Date
import scala.reflect.BeanProperty
class Order {
@BeanProperty var id: Long = _
@BeanProperty var petId: Long = _
@BeanProperty var id: Long = 0L
@BeanProperty var petId: Long = 0L
/* Order Status */
@BeanProperty var status: String = _
@BeanProperty var quantity: Int = _
@BeanProperty var quantity: Int = 0
@BeanProperty var shipDate: Date = _
override def toString: String = {
val sb = new StringBuilder

View File

@ -5,7 +5,7 @@ import com.wordnik.petstore.model.Tag
import scala.reflect.BeanProperty
class Pet {
@BeanProperty var id: Long = _
@BeanProperty var id: Long = 0L
@BeanProperty var tags: java.util.List[Tag] = _
@BeanProperty var category: Category = _
/* pet status in the store */

View File

@ -3,7 +3,7 @@ package com.wordnik.petstore.model
import scala.reflect.BeanProperty
class Tag {
@BeanProperty var id: Long = _
@BeanProperty var id: Long = 0L
@BeanProperty var name: String = _
override def toString: String = {
val sb = new StringBuilder

View File

@ -3,13 +3,13 @@ package com.wordnik.petstore.model
import scala.reflect.BeanProperty
class User {
@BeanProperty var id: Long = _
@BeanProperty var id: Long = 0L
@BeanProperty var lastName: String = _
@BeanProperty var username: String = _
@BeanProperty var phone: String = _
@BeanProperty var email: String = _
/* User Status */
@BeanProperty var userStatus: Int = _
@BeanProperty var userStatus: Int = 0
@BeanProperty var firstName: String = _
@BeanProperty var password: String = _
override def toString: String = {