This commit is contained in:
Everett Sochowski 2012-03-12 11:58:20 +01:00
parent 097c88b225
commit bc12fd846d
2 changed files with 0 additions and 39 deletions

View File

@ -26,7 +26,6 @@ class Account extends MongoRecord[Account] with ObjectIdPk[Account]{
protected object kind extends StringField(this, 255)
protected object bank extends BsonRecordField(this, OBPBank)
object otherAccounts extends BsonRecordListField(this, OtherAccount)
//object otherAccounts extends MongoJsonObjectListField[Account, OtherAccount](this, OtherAccount)
def getUnmediatedOtherAccountUrl(user: String, otherAccountHolder: String) : Box[String] = {
for{
@ -123,20 +122,3 @@ class OtherAccount private() extends BsonRecord[OtherAccount] {
}
object OtherAccount extends OtherAccount with BsonMetaRecord[OtherAccount]
/*case class OtherAccount(holder: String = "",
publicAlias: String = "",
privateAlias: String = "",
moreInfo: String = "",
url: String = "",
imageUrl: String = "",
openCorporatesUrl: Box[String])
//TODO: Probably need a rework here as openCorporatesUrl is marked optional due to existing
// OtherAccount objects in the db that don't have it set. Probably all these fields except
// holder should be made optional.
extends JsonObject[OtherAccount]{
def meta = OtherAccount
}
object OtherAccount extends JsonObjectMeta[OtherAccount]
*/

View File

@ -434,27 +434,6 @@ object OBPAccount extends OBPAccount with BsonMetaRecord[OBPAccount]{
case object APrivateAlias extends AnAlias
}
/*
class OBPAccount private() extends MongoRecord[OBPAccount] with ObjectIdPk[OBPAccount] {
def meta = OBPAccount
object holder extends net.liftweb.record.field.StringField(this, 255)
object number extends net.liftweb.record.field.StringField(this, 255)
object kind extends net.liftweb.record.field.StringField(this, 255)
object bank extends BsonRecordField(this, OBPBank)
}
object OBPAccount extends OBPAccount with MongoMetaRecord[OBPAccount]
*/
///////////
class OBPBank private() extends BsonRecord[OBPBank]{
def meta = OBPBank