Re: Re: AW: [Objectbridge-jdo-dev] jdo extension
Brought to you by:
thma
From: Sebastian K. <seb...@mu...> - 2002-05-24 21:18:44
|
Hi Travis, On Friday 24 May 2002 22:41, tr...@th... wrote: > > Any ideas about default naming conventions? > > Do you mean default name mapping from java field to table column? If so, I > would say identical to the java field name. > > ex: > quantity -> quantity > productGroup -> productGroup I think there are some issues with most databases. First of all, there certainly are reserved keywords like SELECT, FROM, WHERE and so on, but nobody can forbid you to name your java fields likes this. So we would need some conversion (like appending something) here. Another problem is, that most databases have a maximum length for names, ignoring everything after the n-th character. This could result in different names being cut of ending up the same. So we should cut up, say, at n-2 and add an increasing number. Same problem for classes in different packages. There was an interesting thread on www.jdocentral.com a few weeks ago. However, this certainly isn't that important. We could use the simple-conversion as long as we introduce some hooks to add the advanced functionality later. ciao Sebastian -- Sebastian Kanthak | seb...@mu... Q: What do agnostic, insomniac dyslexics do at night? A: Stay awake and wonder if there's a dog. |