gora-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From alfonsonishik...@apache.org
Subject [1/7] gora git commit: GORA-495 fix
Date Thu, 22 Sep 2016 19:24:53 GMT
Repository: gora
Updated Branches:
  refs/heads/master dd6617261 -> 0f11da5cb


GORA-495 fix


Project: http://git-wip-us.apache.org/repos/asf/gora/repo
Commit: http://git-wip-us.apache.org/repos/asf/gora/commit/c103f895
Tree: http://git-wip-us.apache.org/repos/asf/gora/tree/c103f895
Diff: http://git-wip-us.apache.org/repos/asf/gora/diff/c103f895

Branch: refs/heads/master
Commit: c103f8951106f037b7e2b075c69610372d65aa4c
Parents: 882fac9
Author: Kevin Ratnasekera <djkevincr@yahoo.com>
Authored: Sat Sep 17 01:13:47 2016 +0530
Committer: Kevin Ratnasekera <djkevincr@yahoo.com>
Committed: Sat Sep 17 01:13:47 2016 +0530

----------------------------------------------------------------------
 .../main/velocity/org/apache/gora/compiler/templates/record.vm  | 5 +++++
 1 file changed, 5 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/gora/blob/c103f895/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
----------------------------------------------------------------------
diff --git a/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
b/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
index 30d5e3d..3235caa 100644
--- a/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
+++ b/gora-compiler/src/main/velocity/org/apache/gora/compiler/templates/record.vm
@@ -354,6 +354,11 @@ public class ${this.mangle($schema.getName())}#if ($schema.isError())
extends or
   
   }
 
+  private static final org.apache.avro.io.DatumWriter
+            DATUM_WRITER$ = new org.apache.avro.specific.SpecificDatumWriter(SCHEMA$);
+  private static final org.apache.avro.io.DatumReader
+            DATUM_READER$ = new org.apache.avro.specific.SpecificDatumReader(SCHEMA$);
+
   /**
    * Writes AVRO data bean to output stream in the form of AVRO Binary encoding format. This
will transform
    * AVRO data bean from its Java object form to it s serializable form.


Mime
View raw message