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 <djkevi...@yahoo.com>
Authored: Sat Sep 17 01:13:47 2016 +0530
Committer: Kevin Ratnasekera <djkevi...@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.

Reply via email to