adding column to an entity with out touching original entitymodel.xml

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

adding column to an entity with out touching original entitymodel.xml

aswath narayana
Hello,
I am planning to add a column to an Entity, say TaxAuthority.
Is there any other way to add the column without touching the original
entitymodel.xml.

The reason I am asking is for ease of development and customization
* I can keep my changes in a different file
* I can still get the latest ofbiz sources without having to worry about
merging/conflicts

Thanks
-Aswath
Reply | Threaded
Open this post in threaded view
|

Re: adding column to an entity with out touching original entitymodel.xml

Rashko Rejmer
Hi Aswath,

You can try <extend-entity entity-name="TaxAuthority">... </extend-
entity>

There are plenty of examples in the code.
e.g. applications/commonext/entitydef/entitymodel.xml

Regards,
Rashko Rejmer

On 9 Oct 2009, at 17:01, aswath narayana wrote:

> Hello,
> I am planning to add a column to an Entity, say TaxAuthority.
> Is there any other way to add the column without touching the original
> entitymodel.xml.
>
> The reason I am asking is for ease of development and customization
> * I can keep my changes in a different file
> * I can still get the latest ofbiz sources without having to worry  
> about
> merging/conflicts
>
> Thanks
> -Aswath

Reply | Threaded
Open this post in threaded view
|

Re: adding column to an entity with out touching original entitymodel.xml

Scott Gray-2
In reply to this post by aswath narayana
You can use the extend-entity tag

Regards
Scott

HotWax Media
http://www.hotwaxmedia.com

On 10/10/2009, at 3:01 AM, aswath narayana wrote:

> Hello,
> I am planning to add a column to an Entity, say TaxAuthority.
> Is there any other way to add the column without touching the original
> entitymodel.xml.
>
> The reason I am asking is for ease of development and customization
> * I can keep my changes in a different file
> * I can still get the latest ofbiz sources without having to worry  
> about
> merging/conflicts
>
> Thanks
> -Aswath

Reply | Threaded
Open this post in threaded view
|

Re: adding column to an entity with out touching original entitymodel.xml

Jacques Le Roux
Administrator
It's even recommended

Jacques

From: "Scott Gray" <[hidden email]>

> You can use the extend-entity tag
>
> Regards
> Scott
>
> HotWax Media
> http://www.hotwaxmedia.com
>
> On 10/10/2009, at 3:01 AM, aswath narayana wrote:
>
>> Hello,
>> I am planning to add a column to an Entity, say TaxAuthority.
>> Is there any other way to add the column without touching the original
>> entitymodel.xml.
>>
>> The reason I am asking is for ease of development and customization
>> * I can keep my changes in a different file
>> * I can still get the latest ofbiz sources without having to worry  
>> about
>> merging/conflicts
>>
>> Thanks
>> -Aswath
>