• 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: WOLips Entity Modeler SQL Generation and WO 5.4
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOLips Entity Modeler SQL Generation and WO 5.4


  • Subject: Re: WOLips Entity Modeler SQL Generation and WO 5.4
  • From: David Avendasora <email@hidden>
  • Date: Tue, 7 Jul 2009 18:13:03 -0400


On Jul 7, 2009, at 5:32 PM, Andrew Lindesay wrote:

Hello David;

I don't use Postgresql, but I believe that the prototype "id" is the one to use for PKs and FKs. I see that there only seems to be an external type of integer for Postgress and even a LongNumber prototype which has a java datatype of Long, is still an integer in Postgress. Are postgress integers really longs?

I tend to use PG's int4 and int8 types to be sure and generally use int8 for PK/FK's to avoid grief as tables get large.

Same here.

Based on http://www.postgresql.org/docs/8.2/static/datatype- numeric.html I would think that bigint (8byte) would be a better external data type than integer (4 byte).

I guess this is where Kieran's solution of using ERXModel so you can override the ERPrototypes default of "integer" would fit in if you think you'll need keys > 2147483647. Two billion is a lot, but not a completely unreasonable quantity.

Dave



cheers.

___
Andrew Lindesay
www.lindesay.co.nz




_______________________________________________ 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: 
 >Re: WOLips Entity Modeler SQL Generation and WO 5.4 (From: "Scott M. Neal" <email@hidden>)
 >Re: WOLips Entity Modeler SQL Generation and WO 5.4 (From: David Avendasora <email@hidden>)
 >Re: WOLips Entity Modeler SQL Generation and WO 5.4 (From: Andrew Lindesay <email@hidden>)

  • Prev by Date: Re: WOLips Entity Modeler SQL Generation and WO 5.4
  • Next by Date: Re: WOLips Entity Modeler SQL Generation and WO 5.4
  • Previous by thread: Re: WOLips Entity Modeler SQL Generation and WO 5.4
  • Next by thread: And the beat goes on...
  • Index(es):
    • Date
    • Thread