Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #17062
| Path | csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!news-out.readnews.com!transit4.readnews.com!news-out.news.tds.net!newsreading01.news.tds.net!53ab2750!not-for-mail |
|---|---|
| From | "markspace" <markspace@1:261/38.remove-yy0-this> |
| Subject | Re: Type of a generic class? |
| Message-ID | <501C1564.56021.calajapr@time.synchro.net> (permalink) |
| X-Comment-To | Donkey Hottie |
| Newsgroups | comp.lang.java.programmer |
| In-Reply-To | <501C1560.56003.calajapr@time.synchro.net> |
| References | <501C1560.56003.calajapr@time.synchro.net> |
| X-FTN-AREA | COMP.LANG.JAVA.PROGRAMMER |
| X-FTN-MSGID | 1:261/38 6b370dfd |
| X-FTN-REPLY | 1:261/38 e0d18a7f |
| Content-Type | text/plain; charset=IBM437 |
| Content-Transfer-Encoding | 8bit |
| X-Gateway | time.synchro.net [Synchronet 3.16a-Win32 NewsLink 1.98] |
| Lines | 38 |
| Date | Fri, 03 Aug 2012 18:54:15 GMT |
| NNTP-Posting-Host | 69.21.70.65 |
| X-Complaints-To | news@tds.net |
| X-Trace | newsreading01.news.tds.net 1344020055 69.21.70.65 (Fri, 03 Aug 2012 13:54:15 CDT) |
| NNTP-Posting-Date | Fri, 03 Aug 2012 13:54:15 CDT |
| Organization | tds.net |
| Xref | csiph.com comp.lang.java.programmer:17062 |
Show key headers only | View raw
To: Donkey Hottie From: markspace <-@.> On 8/2/2012 12:04 PM, Donkey Hottie wrote: > First problem I have is to translate the type to a lower level > application API call. I can not leave the cast or type conversion to > compiler only. I'm going to ignore other obvious problems and simply focus on the big picture here. You idea how to accomplish this looks *TERRIBLE*. Why aren't you using some kind of ORM? At least use a light-weight library for translating data base entities into objects. <http://commons.apache.org/dbutils/> Also JPA will do some kinds of automatic instantiation for you: <http://openjpa.apache.org/builds/1.0.4/apache-openjpa-1.0.4/docs/manual/jpa_ov erview_mapping_inher.html> I didn't check to see if those are the most recent docs (I don't use this sort of feature). Google for "JPA table inheritance" and check through the results carefully. > Class is a simple version containg only the important parts. Honestly, while we all appreciate the attempt, you example is far from complete. We can guess at a few things, but you should think much more carefully at what the real problem is and design something to illustrate it. --- BBBS/Li6 v4.10 Dada-1 * Origin: Prism bbs (1:261/38) --- Synchronet 3.16a-Win32 NewsLink 1.98 Time Warp of the Future BBS - telnet://time.synchro.net:24
Back to comp.lang.java.programmer | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Type of a generic class? "Donkey Hottie" <donkey.hottie@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "Lew" <lew@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "markspace" <markspace@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "Donkey Hottie" <donkey.hottie@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "Lew" <lew@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "markspace" <markspace@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "Donkey Hottie" <donkey.hottie@1:261/38.remove-yy0-this> - 2012-08-03 18:54 +0000
Re: Type of a generic class? "Donkey Hottie" <donkey.hottie@1:261/38.remove-5qr-this> - 2012-08-04 18:41 +0000
csiph-web