• 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: PK generation
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: PK generation


  • Subject: Re: PK generation
  • From: Ben Ketteridge <email@hidden>
  • Date: Tue, 27 Apr 2004 09:08:26 +0100

Jonathan Rochkind wrote:

I have used newPrimaryKeys in a custom JBCPlugIn sub-class to customize pk generation behavior. It's worked fine for me. I'm pretty confident you should be able to customize pk generation behavior however you want using this method.

I haven't looked in detail at your code, but: Are you sure the JDBCPlugIn class you think is being used is actually being used? If not, then it doesn't matter what your code is, you've got to figure out why not. (Not specified in the model properly?). If your custom JDBCPlugIn class is being used, and your method is being called (all of this can be easily confirmed with a debugger), then you've got to figure out why your code is not doing what you want it to do (again, a debugger would be valuable here).

My code _is_ being called. A breakpoint in the constructor and in start of newPrimaryKeys both get hit at the appropriate times. Thank heavens for Eclipse; debugging is next to impossible on Windows without it.


The problem appears to be around how I get actual results from an EOSQLExpression, calling raw SQL on the EO_PK_TABLE (which has no EOEntity). I never get any results in my fetchRows() call.

--
Kind Regards
Ben.

Dr Ben Ketteridge
email@hidden

Team Leader,
ProAct International,
PO Box 100, Denbigh, UK.
Tel: 01745 817161 ext. 322
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >PK generation (From: Ben Ketteridge <email@hidden>)
 >Re: PK generation (From: Jonathan Rochkind <email@hidden>)

  • Prev by Date: Re: PK generation
  • Next by Date: WOToOneRelationShip selected value
  • Previous by thread: Re: PK generation
  • Next by thread: WORepetition error
  • Index(es):
    • Date
    • Thread