You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Sakthivel Vellingiri <in...@gmail.com> on 2020/10/03 22:26:06 UTC
Alter entity column size or type
OFBiz Version 17.12.03
Framework Gurus : Pls can you confirm if changing column size or type for
an entity is still NOT in scope for <extend-entity
I was able to successfully add columns using <extend-entity, however no
success with altering column size or type
I came across this thread from back in the days, which suggests > altering
size or type is NOT in scope for <extend-entity; Just wanted to check this
is still the case with newer versions in the likes of 17.12.03 or 17.12.04;
Appreciate any insights.
http://ofbiz.135035.n4.nabble.com/Alter-entity-column-size-or-type-td154089.html
Re: Alter entity column size or type
Posted by Jacques Le Roux <ja...@les7arts.com>.
Hi Sakthivel,
I did something related to PK only with https://issues.apache.org/jira/browse/OFBIZ-5648
It allowed me to change the type so length of PKs
Are you sure it does not work for NONPK fields (disclaimer did not try but reading the code it should)?
Anyway better to check the code, the change in ModelEntity.java.patch
<https://issues.apache.org/jira/secure/attachment/12645648/ModelEntity.java.patch> is simple
I notably read at line 369 of ModelEntity.java:
// TODO: only overrides of type, colName, description and enable-audit-log are currently supported
HTH
Jacques
Le 04/10/2020 à 00:26, Sakthivel Vellingiri a écrit :
> OFBiz Version 17.12.03
>
> Framework Gurus : Pls can you confirm if changing column size or type for
> an entity is still NOT in scope for <extend-entity
>
> I was able to successfully add columns using <extend-entity, however no
> success with altering column size or type
>
> I came across this thread from back in the days, which suggests > altering
> size or type is NOT in scope for <extend-entity; Just wanted to check this
> is still the case with newer versions in the likes of 17.12.03 or 17.12.04;
> Appreciate any insights.
>
> http://ofbiz.135035.n4.nabble.com/Alter-entity-column-size-or-type-td154089.html