Author: midon
Date: Thu Oct 15 16:18:50 2009
New Revision: 825550

URL: http://svn.apache.org/viewvc?rev=825550&view=rev
Log:
Hibernate type attribute accepts the class name of the custom type

Modified:
    ode/branches/APACHE_ODE_1.X/Rakefile
    
ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java

Modified: ode/branches/APACHE_ODE_1.X/Rakefile
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/Rakefile?rev=825550&r1=825549&r2=825550&view=diff
==============================================================================
--- ode/branches/APACHE_ODE_1.X/Rakefile (original)
+++ ode/branches/APACHE_ODE_1.X/Rakefile Thu Oct 15 16:18:50 2009
@@ -386,15 +386,6 @@
         
process_instance_hbm.insert(process_instance_hbm.index("class=\"org.apache.ode.daohib.bpel.hobj.HProcess\"")
 - 1, "not-found=\"ignore\" ")
         File.open(process_instance_hbm_file, "w") { |f| f << 
process_instance_hbm }
       end
-      # add gzip typedef (doclet does not support it correctly)
-      typedef = <<-END
-        <typedef name="gzip" 
class="org.apache.ode.daohib.bpel.hobj.GZipDataType"/>
-      END
-      Dir[project.path_to("target/classes")+"/**/*.hbm.xml"].select { |f| 
File.read(f).include? 'type="gzip"' }.each do |hbm|
-        content = File.read(hbm)
-        content.insert(content.index("<class") - 1, typedef)
-        File.open(hbm, "w") { |f| f << content }
-      end
     end
     task "test" => "hbm-hack"
 

Modified: 
ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java
URL: 
http://svn.apache.org/viewvc/ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java?rev=825550&r1=825549&r2=825550&view=diff
==============================================================================
--- 
ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java
 (original)
+++ 
ode/branches/APACHE_ODE_1.X/dao-hibernate/src/main/java/org/apache/ode/daohib/bpel/hobj/HLargeData.java
 Thu Oct 15 16:18:50 2009
@@ -82,7 +82,7 @@
     }
 
     /**
-     * @hibernate.property type="gzip"
+     * @hibernate.property type="org.apache.ode.daohib.bpel.hobj.GZipDataType"
      *
      * @hibernate.column name="BIN_DATA" sql-type="blob(2G)"
      */


Reply via email to