Commit c4dc575a authored by Vladislav Bogdashkin's avatar Vladislav Bogdashkin 🎣

fix dot

parent 8d91df7d
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity
import io.requery.ForeignKey
import io.requery.Key
import io.requery.Persistable
import io.requery.*
/**
* Created by Vladislav Bogdashkin on 05.11.2019.
......@@ -21,5 +18,6 @@ interface Deal : Persistable {
val statusId:Int
val managerName: String
@get:ForeignKey(references = Estate::class )
@get:OneToOne(cascade = [CascadeAction.NONE])
var estate:Estate
}
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity
import io.requery.ForeignKey
import io.requery.Key
import io.requery.Persistable
import com.biganto.visual.roompark.data.repository.db.requrey.utils.IsoDateConverter
import io.requery.*
import java.util.*
/**
......@@ -17,7 +15,9 @@ interface ImageAlbum : Persistable {
val id:Int
val title:String
val sort:Int
@get:Convert(IsoDateConverter::class)
val date: Date
@get:JunctionTable(name= "AlbumParentness")
@get:ForeignKey(references = ImageAlbum::class, referencedColumn = "id")
val parent_id:Int
}
\ No newline at end of file
......@@ -65,7 +65,7 @@ class FilesModule(private val context: Context) {
context?.filesDir?.absolutePath?.plus(dirType.dir)
?: throw IllegalArgumentException("Context cannot be null!")
fun assetsDirectory(context: Context?): String = context?.filesDir?.absolutePath.
fun assetsDirectory(context: Context?): String = context?.filesDir?.absolutePath
?: throw IllegalArgumentException("Context cannot be null!")
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment