• 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
Use LocalDate as primary key
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Use LocalDate as primary key


  • Subject: Use LocalDate as primary key
  • From: Samuel Pelletier <email@hidden>
  • Date: Fri, 22 Jan 2016 17:35:03 -0500

Hi,

I would like to create use a soda LocalDate as primary key for an entity used for report grouping with month, quarter, year...

My creates and inserts works but my fetches fail with this exception:
Attempt to create an EOGlobalID for the entity "DateMTA" with a primary key component of type org.joda.time.LocalDate instead of type com.webobjects.foundation.NSTimestamp!
at com.webobjects.eoaccess.EOEntity._coercePKInput(EOEntity.java:390)

I dig a bit in the code and it seems to come from the adaptorValueClass() method in EOAttribute that think it should be a NSTimestamp instead of an LocalDate.

I am not familial with EOAtribute and it's multiple class and types...

Anyone can help me figure this out ?

Samuel
 _______________________________________________
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: Use LocalDate as primary key
      • From: Chuck Hill <email@hidden>
  • Prev by Date: RE: Building JavaMonitor on Windows
  • Next by Date: Instance becomes unresponsive after 12 hours
  • Previous by thread: Re: enum attribute conundrum
  • Next by thread: Re: Use LocalDate as primary key
  • Index(es):
    • Date
    • Thread