From c16f47eb401a12f034eecf75924680262285e1f4 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Mon, 19 Mar 2018 18:16:30 +0200 Subject: Working on android DAL. --- .../Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml | 5 +---- .../Templates/EntityCodeFileJavaExtension.cshtml | 11 +++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJavaExtension.cshtml (limited to 'Software/Visual_Studio/Tango.CodeGeneration/Templates') diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml index 87c82395b..d9200a718 100644 --- a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJava.cshtml @@ -3,16 +3,13 @@ import com.raizlabs.android.dbflow.annotation.Column; import com.raizlabs.android.dbflow.annotation.ForeignKey; import com.raizlabs.android.dbflow.annotation.ForeignKeyReference; -import com.raizlabs.android.dbflow.annotation.Table; import org.joda.time.DateTime; import com.twine.tango.dal.Entity; -import com.twine.tango.dal.TangoDB; import android.databinding.Bindable; import com.twine.tango.dal.BR; - @@Table(name = "@(Model.TableName)", database = TangoDB.class) - public class @(Model.Name) extends Entity + public abstract class @(Model.Name) extends Entity { @foreach (var prop in Model.Fields) { diff --git a/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJavaExtension.cshtml b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJavaExtension.cshtml new file mode 100644 index 000000000..8498f3311 --- /dev/null +++ b/Software/Visual_Studio/Tango.CodeGeneration/Templates/EntityCodeFileJavaExtension.cshtml @@ -0,0 +1,11 @@ +package com.twine.tango.dal.entities; + +import com.raizlabs.android.dbflow.annotation.Table; +import com.twine.tango.dal.TangoDB; + +@@Table(name = "@(Model.TableName)", database = TangoDB.class, cachingEnabled = true) +public class @(Model.Name) extends @(Model.Extends) +{ + + +} -- cgit v1.3.1