[OFBiz] Users - New entities issue
John Doe
wfenthusiast at gmail.com
Tue Mar 22 00:36:31 EST 2005
Hi,
I think that is dependent on the database u are using for
example in mysql u will find the mapping to the fieldtypes in
components/entity/fieldtype/fieldtypemysql.xml. if u don't find one to
ur satisfaction simply add one entry :)
On Mon, 21 Mar 2005 13:35:48 -0600, Ashish Hareet
<Ashish.Hareet at cpbinc.com> wrote:
> Hello All,
>
> Today I'm trying to create a new entity & as usual
> a stumbling block. The problem is not of any error but that some fields
> are not being created as columns but are being created in a seperate table
> called "note_data" & this table has a relationship to the entity I created.
> All I want to do is allow multiple notes for each party(or should it be person!),
> much like comments but not restricted to 255 chars. Just a small exercise for the day.
>
> Here's my entity-def.
>
> <entity entity-name="PartyNotes"
> package-name="org.ofbiz.party.party"
> title="Party Notes Entity">
> <field name="noteId" type="id-ne"/>
> <field name="partyId" type="id-ne"/>
> <field name="partyNote" type="very-long"/>
> <field name="createDate" type="date-time"/>
> <field name="createdByUserLogin" type="id-vlong"/>
> <field name="lastModifiedDate" type="date-time"/>
> <field name="lstModifiedByUserLogin" type="id-vlong"/>
> <prim-key field="noteId"/>
> </entity>
>
> As per my understanding an entity-def is analogous to a table. It's just that
> we define a table in terms of XML. Or is there more to it that I'm missing.
>
> Thanks
> Ashish Hareet
>
> _______________________________________________
> Users mailing list
> Users at lists.ofbiz.org
> http://lists.ofbiz.org/mailman/listinfo/users
>
More information about the Users
mailing list