• 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
Re: Models confused?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Models confused?


  • Subject: Re: Models confused?
  • From: Jesse Tayler <email@hidden>
  • Date: Wed, 22 Dec 2010 15:12:12 -0500

Thanks Travis,

I had just found that property in the java files somewhere and it does seem to make the save reliable.

Nice.

(seems like a required bit for those using Mysql, as I'm not aware of any downside.)

However, I still had to avoid that one particular constraint in order to get the table's to build, which seems to indicate I have at least one database issue remaining, no?

eogen lines like this run fine:

	commentTable.addForeignKey("mtlyID", "MTLY_POST", "id");

If I avoid this key constraint, say, by commenting out the line, the database migrates without error -

	userTable.addForeignKey("posterId", "ERAttachment", "id");

and after that, if I then use the save sort ordering, the file upload functions and I haven't got an error in two or three tries with it.

doesn't the fact that I can't run that SQL bit there mean there's a mismatch or something on the database itself?

mysql reports error 105 which I thought meant I had a mismatch of key types, but for the life of me, I don't see anything in the model or the database...hmm...


 _______________________________________________
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

References: 
 >Models confused? (From: Jesse Tayler <email@hidden>)
 >Re: Models confused? (From: Paul D Yu <email@hidden>)
 >Re: Models confused? (From: Jesse Tayler <email@hidden>)
 >Re: Models confused? (From: Ramsey Gurley <email@hidden>)
 >Re: Models confused? (From: Jesse Tayler <email@hidden>)
 >Re: Models confused? (From: David Avendasora <email@hidden>)
 >Re: Models confused? (From: David Avendasora <email@hidden>)
 >Re: Models confused? (From: Travis Britt <email@hidden>)

  • Prev by Date: Help! We're leaking
  • Next by Date: Re: Help! We're leaking
  • Previous by thread: Re: Models confused?
  • Next by thread: Re: Models confused?
  • Index(es):
    • Date
    • Thread