Path: csiph.com!newsfeed.hal-mli.net!feeder3.hal-mli.net!newsfeed.hal-mli.net!feeder1.hal-mli.net!feeder.erje.net!eu.feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Gordon Levi Newsgroups: comp.lang.java.programmer,comp.lang.php Subject: Re: ORMs comparisons/complaints. Date: Thu, 02 Jan 2014 19:34:36 +1100 Lines: 18 Message-ID: References: <%JGtu.29103$Wm1.26832@fx17.iad> <52c4d306$0$302$14726298@news.sunsite.dk> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: individual.net w/HI5aAvVHZFk53wyLaqcQXvLOyWLr6nTBvrUr9HvCbf9VLNwe Cancel-Lock: sha1:A/MzQrfE8OWA0PpB/kVdWIFjiVE= User-Agent: ForteAgent/7.00.32.1200 Xref: csiph.com comp.lang.java.programmer:27170 comp.lang.php:12494 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.