• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
EO has no attribute id?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

EO has no attribute id?


  • Subject: EO has no attribute id?
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 28 Aug 2014 15:56:47 -0400

I just created a new Wonder Framework with a single Entity and two attributes (id, and newAttribute)

I created the migrations and all looks good.

I created a new Wonder D2W app and added my framework to the build path.

I ran the app and the migrations ran fine I see in my db:

mytest=# \d newentity
                           Table "public.newentity"
    Column    |  Type   |                      Modifiers                      
--------------+---------+-----------------------------------------------------
 id           | integer | not null default nextval('newentity_seq'::regclass)
 newattribute | text    | not null
Indexes:
    "newentity_pk" PRIMARY KEY, btree (id)

mytest=# 

But when I try to see what is in my database, I click the find button on the home screen and the app crashes with:


Error: java.lang.IllegalStateException: sqlStringForAttribute: attempt to generate SQL for attribute 'id' on entity 'NewEntity' with undefined column name. You must define a column name for this attribute before attempting a database operation.
Reason: sqlStringForAttribute: attempt to generate SQL for attribute 'id' on entity 'NewEntity' with undefined column name. You must define a column name for this attribute before attempting a database operation.

no attribute ‘id’?

I examined the build path, and I don’t see that I am missing any frameworks, but I don’t get it. I have data in my db:

mytest=# select * from newentity;
 id |  newattribute  
----+----------------
  1 | this is a test
(1 row)

mytest=# 

Am I missing a framework? I have done this 50 times in the last few months and it worked fine.

Ted
 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: EO has no attribute id?
      • From: Ray Kiddy <email@hidden>
  • Prev by Date: Re: SSDD and taglib definition
  • Next by Date: Re: EO has no attribute id?
  • Previous by thread: Re: SSDD and taglib definition
  • Next by thread: Re: EO has no attribute id?
  • Index(es):
    • Date
    • Thread