Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.freenet.ag!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Fri, 03 Jan 2014 03:23:12 -0600 Date: Fri, 03 Jan 2014 09:23:12 +0000 From: lipska the kat Organization: Trollbusters 3 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130308 Thunderbird/17.0.4 MIME-Version: 1.0 Newsgroups: comp.lang.java.programmer Subject: Re: ORMs comparisons/complaints. References: <%JGtu.29103$Wm1.26832@fx17.iad> <52c4d306$0$302$14726298@news.sunsite.dk> <52c615a8$0$302$14726298@news.sunsite.dk> <1evcc9hl6mk3gh5slh1r2ovjfmhutsl63e@4ax.com> In-Reply-To: <1evcc9hl6mk3gh5slh1r2ovjfmhutsl63e@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit Message-ID: Lines: 37 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-hUySBoydUNPFAJSOcDqcdVxDGqIMjjfG8Fby6LSNnBrbfG0AltFiq5hFaHj63MQPl6RBn/KcK88kxqZ!MHBmWp/jS8nZTel9tF/GphivTe5xfFB1VYb0XErtp64+IVnePishZ3ykf2XKZ7H1RS1JeK6/VW4= X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2768 Xref: csiph.com comp.lang.java.programmer:27192 On 03/01/14 09:19, Gordon Levi wrote: > Arne Vajhøj wrote: > >> On 1/2/2014 3:34 AM, Gordon Levi wrote: >>> Arne Vajhøj wrote: >>>> Let us say that you need to add a field. >>>> >>>> With an ORM you only need to update: >>>> * one dataclass >>>> * one mapping of data >>>> >>>> With plain JDBC you need to change: >>>> * one data class >>>> * N SQL statements >>>> * N places in the Java code >>> >>> I don't understand this so I fear I must be doing something wrong in >>> my Java programs. If someone wants to add a field in a database why do >>> I have to alter anything in my program other than adding, for example, >>> getString(String columnLabel) if I want to actually use the new field >>> at that point in the program. >> >> The context is that the class is persisted in a relational >> database. > > Thank you, it seems my fears are well founded. Does that mean that > real Java programmers go to the trouble of breaking the relational > model in order to maintain the object model? No, it usually means that the Object model is broken in order to maintain the relational model. -- Lipska the Kat©: Troll hunter, sandbox destroyer, treacherous feline and farscape dreamer of Aeryn Sun GNU/Linux user #560883 - http://www.linuxcounter.net