java - Web application running on both Oracle and MySQL -



java - Web application running on both Oracle and MySQL -

i have web application works on both oracle , mysql databases, problem want create column in database has longtext type in mysql , clob in oracle, how can accomplish using hibernate? here code:

@column(name = "bigtext" , nullable = false) public string getbigtext() { homecoming bigtext; }

i tried using: columndefinition="longtext", working under mysql not oracle. else can do?

see below link

defference between oracle , mysql datatype

if(databasename.equals("oracle"){ utilize here entity oracle datatype used }else if(databasename.equals("mysql"){ utilize here entity mysqldatatype used }

java mysql oracle clob longtext

Comments

Popular posts from this blog

Delphi change the assembly code of a running process -

json - Hibernate and Jackson (java.lang.IllegalStateException: Cannot call sendError() after the response has been committed) -

C++ 11 "class" keyword -