Re: reversing java to c enum style mapping
- From: Martin Gregorie <martin@xxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 23 Feb 2009 13:14:57 +0000 (UTC)
On Sun, 22 Feb 2009 15:11:36 -0800, Mark Space wrote:
I can see a positive demerit - lack of portability. I use PostgresQL, but
My recollection for the enum approach though was that it only actually
yielded an integer. The DB didn't return a string, just an int. You
had to assume on the client side that you knew what string to use for
what int.
would not use its enums because that would make the application non-
portable to Derby or H2.
Similarly, I do use sequences, which are fairly commonly implemented but
accept that would require a rewrite if my code needed to be ported to
MySQL, which only has auto-incrementing columns.
--
martin@ | Martin Gregorie
gregorie. | Essex, UK
org |
.
- References:
- reversing java to c enum style mapping
- From: Aryeh M. Friedman
- Re: reversing java to c enum style mapping
- From: Mark Space
- Re: reversing java to c enum style mapping
- From: Roedy Green
- Re: reversing java to c enum style mapping
- From: Mark Space
- Re: reversing java to c enum style mapping
- From: Lew
- Re: reversing java to c enum style mapping
- From: Daniel Pitts
- Re: reversing java to c enum style mapping
- From: Mark Space
- reversing java to c enum style mapping
- Prev by Date: Re: reversing java to c enum style mapping
- Next by Date: Re: how to make dates without timezones?
- Previous by thread: Re: reversing java to c enum style mapping
- Next by thread: Servlet to stream image using IMG tag
- Index(es):
Relevant Pages
|