-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
33 changed files
with
97 additions
and
153 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,47 +18,35 @@ import fr.geonature.commons.data.helper.get | |
* | ||
* @author [S. Grimault](mailto:[email protected]) | ||
*/ | ||
@Entity(tableName = Nomenclature.TABLE_NAME) | ||
open class Nomenclature : Parcelable { | ||
|
||
@Entity( | ||
tableName = Nomenclature.TABLE_NAME, | ||
foreignKeys = [ForeignKey( | ||
entity = NomenclatureType::class, | ||
parentColumns = [NomenclatureType.COLUMN_ID], | ||
childColumns = [Nomenclature.COLUMN_TYPE_ID], | ||
onDelete = CASCADE | ||
)] | ||
) | ||
open class Nomenclature( | ||
/** | ||
* The unique ID of this nomenclature. | ||
*/ | ||
@PrimaryKey(autoGenerate = true) | ||
@ColumnInfo(name = COLUMN_ID) | ||
var id: Long | ||
var id: Long, | ||
|
||
@ColumnInfo(name = COLUMN_CODE) | ||
var code: String | ||
var code: String, | ||
|
||
@ColumnInfo(name = COLUMN_HIERARCHY) | ||
var hierarchy: String | ||
|
||
var hierarchy: String, | ||
@ColumnInfo(name = COLUMN_DEFAULT_LABEL) | ||
var defaultLabel: String | ||
var defaultLabel: String, | ||
|
||
@ForeignKey( | ||
entity = NomenclatureType::class, | ||
parentColumns = [NomenclatureType.COLUMN_ID], | ||
childColumns = [COLUMN_TYPE_ID], | ||
onDelete = CASCADE | ||
) | ||
@ColumnInfo(name = COLUMN_TYPE_ID) | ||
@ColumnInfo(name = COLUMN_TYPE_ID, index = true) | ||
var typeId: Long | ||
|
||
constructor( | ||
id: Long, | ||
code: String, | ||
hierarchy: String, | ||
defaultLabel: String, | ||
typeId: Long | ||
) { | ||
this.id = id | ||
this.code = code | ||
this.hierarchy = hierarchy | ||
this.defaultLabel = defaultLabel | ||
this.typeId = typeId | ||
} | ||
) : Parcelable { | ||
|
||
internal constructor(source: Parcel) : this( | ||
source.readLong(), | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Sun May 23 16:23:47 CEST 2021 | ||
VERSION_CODE=2855 | ||
#Sat Jun 12 15:17:29 CEST 2021 | ||
VERSION_CODE=2890 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
<manifest | ||
xmlns:android="http://schemas.android.com/apk/res/android" | ||
package="fr.geonature.mountpoint" /> | ||
<manifest package="fr.geonature.mountpoint" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
#Sun Mar 28 16:43:24 CEST 2021 | ||
VERSION_CODE=300 | ||
#Sat Jun 12 15:17:29 CEST 2021 | ||
VERSION_CODE=370 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.