override JPA entity column definition
Posted: Sat Nov 29, 2014 12:37 am
Hi phillip,
Wanted to override JPA entity's column definition of certain attributes due to the hibernate issue when I set the
blPU.hibernate.hbm2ddl.auto=validate
causing the below issues and later did some home work,
https://hibernate.atlassian.net/i#browse/HHH-6935
http://stackoverflow.com/questions/2411 ... t-in-mysql
https://cedar715.wordpress.com/2009/10/ ... rchar2255/
So, if I extend the broadleaf entity and override the required attribute setting the JPA annotation for column with "columndefinition = mediumtext" is one solution which I can think of and wanted to check with you on the same.
Also, I verified the Broadleaf documentation it only specifies the Metadata overrides which are specific for Broadleaf annotations like AdminPresentation having xml and entity extensions. so is there a way to handle this also?
http://www.broadleafcommerce.com/docs/c ... -overrides
Awaiting your response. thanks.
Wanted to override JPA entity's column definition of certain attributes due to the hibernate issue when I set the
blPU.hibernate.hbm2ddl.auto=validate
causing the below issues and later did some home work,
https://hibernate.atlassian.net/i#browse/HHH-6935
http://stackoverflow.com/questions/2411 ... t-in-mysql
https://cedar715.wordpress.com/2009/10/ ... rchar2255/
So, if I extend the broadleaf entity and override the required attribute setting the JPA annotation for column with "columndefinition = mediumtext" is one solution which I can think of and wanted to check with you on the same.
Also, I verified the Broadleaf documentation it only specifies the Metadata overrides which are specific for Broadleaf annotations like AdminPresentation having xml and entity extensions. so is there a way to handle this also?
http://www.broadleafcommerce.com/docs/c ... -overrides
Awaiting your response. thanks.