You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jacopo Cappellato <ti...@sastau.it> on 2006/09/29 07:05:31 UTC
Re: Entity model creation of composite key
There are many examples of this in the OFBiz codebase; for example have a
look at the definition of the ProductFacility entity (in
applications/product/entitydef/) that has a primary key composed of
productId and facilityId.
Jacopo
G.Venkata Phanindra wrote:
> Hi ,
> I want to add my own Entity in ofbiz, from the document i have seen its
> very easy to do it using the entitymodel.xml files .
> but i wantted to create a key which will be combination of two keys.
> following is my data Model defination
> <entity entity-name="GeoHoliday"
> package-name="com.ecomzera.ezoz"
> title="Geo Holidays list">
> <field name="geoId" type="id-ne"></field>
> <field name="holidayId" type="id-ne"></field>
> <field name="description" type="description"></field>
> <!-- TODO specify the forieng key constraints -->
> </entity>
> Now i want to relate geoId to Ofbiz Geo Table geoid and also create a
> primary key as a combination of geoid n holiday id.
> how do i define this
> G.Venkata Phanindra
> Mob:: 9849852989
>
Re: Entity model creation of composite key
Posted by "G.Venkata Phanindra" <ph...@gmail.com>.
Thanks for the reply ........i am able to define my table.......they r even
visible in webtools but when i look at individual table i am gettin
gfollowing error Page
javax.servlet.ServletException: javax.servlet.jsp.JspException: Helper name
not found for entity HolidayList
Thnks
Phani
On 9/29/06, Jacopo Cappellato <ti...@sastau.it> wrote:
>
> There are many examples of this in the OFBiz codebase; for example have a
> look at the definition of the ProductFacility entity (in
> applications/product/entitydef/) that has a primary key composed of
> productId and facilityId.
>
> Jacopo
>
>
> G.Venkata Phanindra wrote:
> > Hi ,
> > I want to add my own Entity in ofbiz, from the document i have seen its
> > very easy to do it using the entitymodel.xml files .
> > but i wantted to create a key which will be combination of two keys.
> > following is my data Model defination
> > <entity entity-name="GeoHoliday"
> > package-name="com.ecomzera.ezoz"
> > title="Geo Holidays list">
> > <field name="geoId" type="id-ne"></field>
> > <field name="holidayId" type="id-ne"></field>
> > <field name="description" type="description"></field>
> > <!-- TODO specify the forieng key constraints -->
> > </entity>
> > Now i want to relate geoId to Ofbiz Geo Table geoid and also create a
> > primary key as a combination of geoid n holiday id.
> > how do i define this
> > G.Venkata Phanindra
> > Mob:: 9849852989
> >
>
>
>
--
G.Venkata Phanindra
Mob:: 9849852989