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

fix dot

parent 8d91df7d
package com.biganto.visual.roompark.data.repository.db.requrey.model package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity import io.requery.*
import io.requery.ForeignKey
import io.requery.Key
import io.requery.Persistable
/** /**
* Created by Vladislav Bogdashkin on 05.11.2019. * Created by Vladislav Bogdashkin on 05.11.2019.
...@@ -21,5 +18,6 @@ interface Deal : Persistable { ...@@ -21,5 +18,6 @@ interface Deal : Persistable {
val statusId:Int val statusId:Int
val managerName: String val managerName: String
@get:ForeignKey(references = Estate::class ) @get:ForeignKey(references = Estate::class )
@get:OneToOne(cascade = [CascadeAction.NONE])
var estate:Estate var estate:Estate
} }
\ No newline at end of file
package com.biganto.visual.roompark.data.repository.db.requrey.model package com.biganto.visual.roompark.data.repository.db.requrey.model
import io.requery.Entity import com.biganto.visual.roompark.data.repository.db.requrey.utils.IsoDateConverter
import io.requery.ForeignKey import io.requery.*
import io.requery.Key
import io.requery.Persistable
import java.util.* import java.util.*
/** /**
...@@ -17,7 +15,9 @@ interface ImageAlbum : Persistable { ...@@ -17,7 +15,9 @@ interface ImageAlbum : Persistable {
val id:Int val id:Int
val title:String val title:String
val sort:Int val sort:Int
@get:Convert(IsoDateConverter::class)
val date: Date val date: Date
@get:JunctionTable(name= "AlbumParentness")
@get:ForeignKey(references = ImageAlbum::class, referencedColumn = "id") @get:ForeignKey(references = ImageAlbum::class, referencedColumn = "id")
val parent_id:Int val parent_id:Int
} }
\ No newline at end of file
...@@ -65,7 +65,7 @@ class FilesModule(private val context: Context) { ...@@ -65,7 +65,7 @@ class FilesModule(private val context: Context) {
context?.filesDir?.absolutePath?.plus(dirType.dir) context?.filesDir?.absolutePath?.plus(dirType.dir)
?: throw IllegalArgumentException("Context cannot be null!") ?: 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!") ?: 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