Skip to content

Commit

Permalink
added all ints
Browse files Browse the repository at this point in the history
  • Loading branch information
coleji committed Nov 25, 2023
1 parent 438b8bb commit 18b0881
Show file tree
Hide file tree
Showing 51 changed files with 164 additions and 471 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ class ApClassTypeOverride extends StorableClass(ApClassTypeOverride) {
val rowId = new IntFieldValue(self, ApClassTypeOverride.fields.rowId)
val personId = new IntFieldValue(self, ApClassTypeOverride.fields.personId)
val typeId = new IntFieldValue(self, ApClassTypeOverride.fields.typeId)
val season = new DoubleFieldValue(self, ApClassTypeOverride.fields.season)
val season = new IntFieldValue(self, ApClassTypeOverride.fields.season)
val createdOn = new NullableDateTimeFieldValue(self, ApClassTypeOverride.fields.createdOn)
val createdBy = new NullableStringFieldValue(self, ApClassTypeOverride.fields.createdBy)
val updatedOn = new NullableDateTimeFieldValue(self, ApClassTypeOverride.fields.updatedOn)
Expand All @@ -31,7 +31,7 @@ object ApClassTypeOverride extends StorableObject[ApClassTypeOverride] {
val rowId = new IntDatabaseField(self, "ROW_ID")
val personId = new IntDatabaseField(self, "PERSON_ID")
val typeId = new IntDatabaseField(self, "TYPE_ID")
val season = new DoubleDatabaseField(self, "SEASON")
val season = new IntDatabaseField(self, "SEASON")
val createdOn = new NullableDateTimeDatabaseField(self, "CREATED_ON")
val createdBy = new NullableStringDatabaseField(self, "CREATED_BY", 500)
val updatedOn = new NullableDateTimeDatabaseField(self, "UPDATED_ON")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ApClassTypesSeason extends StorableClass(ApClassTypesSeason) {
override object values extends ValuesObject {
val assignId = new IntFieldValue(self, ApClassTypesSeason.fields.assignId)
val typeId = new IntFieldValue(self, ApClassTypesSeason.fields.typeId)
val season = new DoubleFieldValue(self, ApClassTypesSeason.fields.season)
val season = new IntFieldValue(self, ApClassTypesSeason.fields.season)
}
}

Expand All @@ -24,7 +24,7 @@ object ApClassTypesSeason extends StorableObject[ApClassTypesSeason] {
object fields extends FieldsObject {
val assignId = new IntDatabaseField(self, "ASSIGN_ID")
val typeId = new IntDatabaseField(self, "TYPE_ID")
val season = new DoubleDatabaseField(self, "SEASON")
val season = new IntDatabaseField(self, "SEASON")
}

def primaryKey: IntDatabaseField = fields.assignId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class ApClassVoucher extends StorableClass(ApClassVoucher) {
override object values extends ValuesObject {
val voucherId = new IntFieldValue(self, ApClassVoucher.fields.voucherId)
val personId = new IntFieldValue(self, ApClassVoucher.fields.personId)
val season = new DoubleFieldValue(self, ApClassVoucher.fields.season)
val season = new IntFieldValue(self, ApClassVoucher.fields.season)
val value = new DoubleFieldValue(self, ApClassVoucher.fields.value)
val createdOn = new NullableDateTimeFieldValue(self, ApClassVoucher.fields.createdOn)
val createdBy = new NullableStringFieldValue(self, ApClassVoucher.fields.createdBy)
Expand All @@ -33,7 +33,7 @@ object ApClassVoucher extends StorableObject[ApClassVoucher] {
object fields extends FieldsObject {
val voucherId = new IntDatabaseField(self, "VOUCHER_ID")
val personId = new IntDatabaseField(self, "PERSON_ID")
val season = new DoubleDatabaseField(self, "SEASON")
val season = new IntDatabaseField(self, "SEASON")
val value = new DoubleDatabaseField(self, "VALUE")
val createdOn = new NullableDateTimeDatabaseField(self, "CREATED_ON")
val createdBy = new NullableStringDatabaseField(self, "CREATED_BY", 500)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ class BoatType extends StorableClass(BoatType) {
val createdBy = new StringFieldValue(self, BoatType.fields.createdBy)
val updatedOn = new DateTimeFieldValue(self, BoatType.fields.updatedOn)
val updatedBy = new StringFieldValue(self, BoatType.fields.updatedBy)
val minCrew = new DoubleFieldValue(self, BoatType.fields.minCrew)
val maxCrew = new DoubleFieldValue(self, BoatType.fields.maxCrew)
val minCrew = new IntFieldValue(self, BoatType.fields.minCrew)
val maxCrew = new IntFieldValue(self, BoatType.fields.maxCrew)
val imageFilename = new NullableStringFieldValue(self, BoatType.fields.imageFilename)
}
}
Expand All @@ -45,9 +45,9 @@ object BoatType extends StorableObject[BoatType] {
@NullableInDatabase
val updatedBy = new StringDatabaseField(self, "UPDATED_BY", 500)
@NullableInDatabase
val minCrew = new DoubleDatabaseField(self, "MIN_CREW")
val minCrew = new IntDatabaseField(self, "MIN_CREW")
@NullableInDatabase
val maxCrew = new DoubleDatabaseField(self, "MAX_CREW")
val maxCrew = new IntDatabaseField(self, "MAX_CREW")
val imageFilename = new NullableStringDatabaseField(self, "IMAGE_FILENAME", 50)
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CardDefinitionType extends StorableClass(CardDefinitionType) {
override object values extends ValuesObject {
val typeId = new IntFieldValue(self, CardDefinitionType.fields.typeId)
val typeName = new StringFieldValue(self, CardDefinitionType.fields.typeName)
val warnAt = new NullableDoubleFieldValue(self, CardDefinitionType.fields.warnAt)
val warnAt = new NullableIntFieldValue(self, CardDefinitionType.fields.warnAt)
}
}

Expand All @@ -25,7 +25,7 @@ object CardDefinitionType extends StorableObject[CardDefinitionType] {
val typeId = new IntDatabaseField(self, "TYPE_ID")
@NullableInDatabase
val typeName = new StringDatabaseField(self, "TYPE_NAME", 100)
val warnAt = new NullableDoubleDatabaseField(self, "WARN_AT")
val warnAt = new NullableIntDatabaseField(self, "WARN_AT")
}

def primaryKey: IntDatabaseField = fields.typeId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class CardDismissal extends StorableClass(CardDismissal) {
override object values extends ValuesObject {
val dismissalId = new IntFieldValue(self, CardDismissal.fields.dismissalId)
val cardAssignId = new IntFieldValue(self, CardDismissal.fields.cardAssignId)
val season = new DoubleFieldValue(self, CardDismissal.fields.season)
val season = new IntFieldValue(self, CardDismissal.fields.season)
val createdOn = new DateTimeFieldValue(self, CardDismissal.fields.createdOn)
val createdBy = new StringFieldValue(self, CardDismissal.fields.createdBy)
val updatedOn = new DateTimeFieldValue(self, CardDismissal.fields.updatedOn)
Expand All @@ -30,7 +30,7 @@ object CardDismissal extends StorableObject[CardDismissal] {
@NullableInDatabase
val cardAssignId = new IntDatabaseField(self, "CARD_ASSIGN_ID")
@NullableInDatabase
val season = new DoubleDatabaseField(self, "SEASON")
val season = new IntDatabaseField(self, "SEASON")
@NullableInDatabase
val createdOn = new DateTimeDatabaseField(self, "CREATED_ON")
@NullableInDatabase
Expand Down
114 changes: 0 additions & 114 deletions app/org/sailcbi/APIServer/Entities/EntityDefinitions/Eii.scala

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ import play.api.libs.json._
class EiiMit extends StorableClass(EiiMit) {
override object values extends ValuesObject {
val rowId = new IntFieldValue(self, EiiMit.fields.rowId)
val adults = new DoubleFieldValue(self, EiiMit.fields.adults)
val children = new DoubleFieldValue(self, EiiMit.fields.children)
val adults = new IntFieldValue(self, EiiMit.fields.adults)
val children = new IntFieldValue(self, EiiMit.fields.children)
val eii = new DoubleFieldValue(self, EiiMit.fields.eii)
val generation = new DoubleFieldValue(self, EiiMit.fields.generation)
val nonworkingAdults = new DoubleFieldValue(self, EiiMit.fields.nonworkingAdults)
val generation = new IntFieldValue(self, EiiMit.fields.generation)
val nonworkingAdults = new IntFieldValue(self, EiiMit.fields.nonworkingAdults)
}
}

Expand All @@ -27,15 +27,15 @@ object EiiMit extends StorableObject[EiiMit] {
object fields extends FieldsObject {
val rowId = new IntDatabaseField(self, "ROW_ID")
@NullableInDatabase
val adults = new DoubleDatabaseField(self, "ADULTS")
val adults = new IntDatabaseField(self, "ADULTS")
@NullableInDatabase
val children = new DoubleDatabaseField(self, "CHILDREN")
val children = new IntDatabaseField(self, "CHILDREN")
@NullableInDatabase
val eii = new DoubleDatabaseField(self, "EII")
@NullableInDatabase
val generation = new DoubleDatabaseField(self, "GENERATION")
val generation = new IntDatabaseField(self, "GENERATION")
@NullableInDatabase
val nonworkingAdults = new DoubleDatabaseField(self, "NONWORKING_ADULTS")
val nonworkingAdults = new IntDatabaseField(self, "NONWORKING_ADULTS")
}

def primaryKey: IntDatabaseField = fields.rowId
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import play.api.libs.json._
class EiiOverride extends StorableClass(EiiOverride) {
override object values extends ValuesObject {
val personId = new IntFieldValue(self, EiiOverride.fields.personId)
val season = new DoubleFieldValue(self, EiiOverride.fields.season)
val season = new IntFieldValue(self, EiiOverride.fields.season)
val price = new DoubleFieldValue(self, EiiOverride.fields.price)
val createdOn = new DateTimeFieldValue(self, EiiOverride.fields.createdOn)
val createdBy = new StringFieldValue(self, EiiOverride.fields.createdBy)
Expand All @@ -30,7 +30,7 @@ object EiiOverride extends StorableObject[EiiOverride] {
@NullableInDatabase
val personId = new IntDatabaseField(self, "PERSON_ID")
@NullableInDatabase
val season = new DoubleDatabaseField(self, "SEASON")
val season = new IntDatabaseField(self, "SEASON")
@NullableInDatabase
val price = new DoubleDatabaseField(self, "PRICE")
@NullableInDatabase
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,13 @@ class EiiResponse extends StorableClass(EiiResponse) {
override object values extends ValuesObject {
val responseId = new IntFieldValue(self, EiiResponse.fields.responseId)
val personId = new IntFieldValue(self, EiiResponse.fields.personId)
val season = new DoubleFieldValue(self, EiiResponse.fields.season)
val workers = new NullableDoubleFieldValue(self, EiiResponse.fields.workers)
val season = new IntFieldValue(self, EiiResponse.fields.season)
val workers = new NullableIntFieldValue(self, EiiResponse.fields.workers)
val benefits = new NullableBooleanFieldValue(self, EiiResponse.fields.benefits)
val infants = new NullableDoubleFieldValue(self, EiiResponse.fields.infants)
val preschoolers = new NullableDoubleFieldValue(self, EiiResponse.fields.preschoolers)
val schoolagers = new NullableDoubleFieldValue(self, EiiResponse.fields.schoolagers)
val teenagers = new NullableDoubleFieldValue(self, EiiResponse.fields.teenagers)
val infants = new NullableIntFieldValue(self, EiiResponse.fields.infants)
val preschoolers = new NullableIntFieldValue(self, EiiResponse.fields.preschoolers)
val schoolagers = new NullableIntFieldValue(self, EiiResponse.fields.schoolagers)
val teenagers = new NullableIntFieldValue(self, EiiResponse.fields.teenagers)
val income = new NullableDoubleFieldValue(self, EiiResponse.fields.income)
val computedEii = new NullableDoubleFieldValue(self, EiiResponse.fields.computedEii)
val computedPrice = new DoubleFieldValue(self, EiiResponse.fields.computedPrice)
Expand All @@ -31,8 +31,8 @@ class EiiResponse extends StorableClass(EiiResponse) {
val pdComment = new NullableStringFieldValue(self, EiiResponse.fields.pdComment)
val status = new NullableStringFieldValue(self, EiiResponse.fields.status)
val utilizedInflationFactor = new NullableDoubleFieldValue(self, EiiResponse.fields.utilizedInflationFactor)
val children = new NullableDoubleFieldValue(self, EiiResponse.fields.children)
val nonworkingAdults = new NullableDoubleFieldValue(self, EiiResponse.fields.nonworkingAdults)
val children = new NullableIntFieldValue(self, EiiResponse.fields.children)
val nonworkingAdults = new NullableIntFieldValue(self, EiiResponse.fields.nonworkingAdults)
}
}

Expand All @@ -44,13 +44,13 @@ object EiiResponse extends StorableObject[EiiResponse] {
object fields extends FieldsObject {
val responseId = new IntDatabaseField(self, "RESPONSE_ID")
val personId = new IntDatabaseField(self, "PERSON_ID")
val season = new DoubleDatabaseField(self, "SEASON")
val workers = new NullableDoubleDatabaseField(self, "WORKERS")
val season = new IntDatabaseField(self, "SEASON")
val workers = new NullableIntDatabaseField(self, "WORKERS")
val benefits = new NullableBooleanDatabaseField(self, "BENEFITS")
val infants = new NullableDoubleDatabaseField(self, "INFANTS")
val preschoolers = new NullableDoubleDatabaseField(self, "PRESCHOOLERS")
val schoolagers = new NullableDoubleDatabaseField(self, "SCHOOLAGERS")
val teenagers = new NullableDoubleDatabaseField(self, "TEENAGERS")
val infants = new NullableIntDatabaseField(self, "INFANTS")
val preschoolers = new NullableIntDatabaseField(self, "PRESCHOOLERS")
val schoolagers = new NullableIntDatabaseField(self, "SCHOOLAGERS")
val teenagers = new NullableIntDatabaseField(self, "TEENAGERS")
val income = new NullableDoubleDatabaseField(self, "INCOME")
val computedEii = new NullableDoubleDatabaseField(self, "COMPUTED_EII")
@NullableInDatabase
Expand All @@ -67,8 +67,8 @@ object EiiResponse extends StorableObject[EiiResponse] {
val pdComment = new NullableStringDatabaseField(self, "PD_COMMENT", -1)
val status = new NullableStringDatabaseField(self, "STATUS", 1)
val utilizedInflationFactor = new NullableDoubleDatabaseField(self, "UTILIZED_INFLATION_FACTOR")
val children = new NullableDoubleDatabaseField(self, "CHILDREN")
val nonworkingAdults = new NullableDoubleDatabaseField(self, "NONWORKING_ADULTS")
val children = new NullableIntDatabaseField(self, "CHILDREN")
val nonworkingAdults = new NullableIntDatabaseField(self, "NONWORKING_ADULTS")
}

def primaryKey: IntDatabaseField = fields.responseId
Expand Down
Loading

0 comments on commit 18b0881

Please sign in to comment.