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
Post a Comment