Login  Register

Re: Dev - [OFBiz] Primary key not being passed(?)

Posted by Hans Bakker on May 23, 2006; 12:46pm
URL: http://ofbiz.116.s1.nabble.com/Primary-key-not-being-passed-tp168044p168046.html

Hi Sangeeta,

It looks like you created the entity and defined the primary key in OFBiz
later. Ofbiz is not able to make these changes to the database

delete the table manually from the database and restart ofbiz....

Hans

On Tuesday 23 May 2006 17:14, Sangs wrote:

> Hi everybody!
>
> can someone please,please tell me why am i getting the following errors:
> the entitymodel and entutygroup files are correct i have verified them
> against the tutorials available on the site.
> Any help will be appreciated.
>
> 13422 (main) [       DatabaseUtil.java:280:WARN ] Column [HELLO_HOBBY_ID]
> of table [OFBIZ.HELLO_HOBBY] of entity [HelloHobby] exists in the database
> but has no corresponding field (and it is a PRIMARY KEY COLUMN)
> 13422 (main) [       DatabaseUtil.java:269:ERROR] WARNING: Column
> [HOBBY_ID] of table [OFBIZ.HELLO_HOBBY] of entity [HelloHobby] IS NOT a
> primary key in the database, but IS a primary key in the entity definition.
> The primary key for this table needs to be re-created or modified to add
> this column to the primary key. Note that data may need to be added first
> as a primary key column cannot have an null values.
> 13422 (main) [       DatabaseUtil.java:288:WARN ] Entity [HelloHobby] has 6
> fields but table [OFBIZ.HELLO_HOBBY] has 7 columns.
> 13422 (main) [       DatabaseUtil.java:280:WARN ] Column [HELLO_PERSON_ID]
> of table [OFBIZ.HELLO_PERSON] of entity [HelloPerson] exists in the
> database but has no corresponding field (and it is a PRIMARY KEY COLUMN)
>
> Thanks!
> Sangeeta
> --
> View this message in context:
> http://www.nabble.com/Primary+key+not+being+passed%28-%29-t1663042.html#a45
>20483 Sent from the OFBiz - Dev forum at Nabble.com.
>
>
> _______________________________________________
> Dev mailing list
> [hidden email]
> http://lists.ofbiz.org/mailman/listinfo/dev
--
Regards,
Hans Bakker
ANT Websystems Co.,Ltd (http://www.antwebsystems.com)

If you want to verify that this message really originates from
from the above person, download the public key from:
http://www.antwebsystems.com/hbakkerAntwebsystems.asc

 
_______________________________________________
Dev mailing list
[hidden email]
http://lists.ofbiz.org/mailman/listinfo/dev

attachment0 (196 bytes) Download Attachment