Things I wish I'd Known Earlier

But learned the hard way!

CategoryJava Persistence Architecture (JPA) and related ORM

Land Mines – Spring Neo4j

Written by Tim on April 3, 2015

One of the primary purposes of this blog is to record what I’ve learned by tedious trial and error and/or spending time down in source code I shouldn’t have had to look at. This particular topic has more than its share of discoveries. Spring Neo4j claims that it’s intended to ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged Neo4j | SDN | spring

DBUnit and CSV reference data

Written by Tim on December 31, 2012

The CSV capabilities of dbUnit are under-documented. Here’s the results of some pain, suffering and debug tracing: The CSV files are expected to be one-per-table. The tablename is part of the filename, thus: “TABLE1.csv”. Format is the usual, with the first row containing the column names and subsequent rows containing ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged csv | dbunit | testing

JPA and overlapping complex keys

Written by Tim on June 29, 2011

If at all possible, you should avoid setting up databases with complex keys (or compound keys, as they are sometimes known). It makes life a whole lot more complex, and in a world where everyone already says you’re taking too long because “All You Have To Do Is…”, complex isn’t ( more… )

Posted In Better Software Design | Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged complex keys | compound keys

Myfaces Extensions Validator and RichFaces (Not yet)

Written by Tim on February 18, 2009

The MyFaces extensions validator package looks like someday it will make life a lot more pleasant when designing JSF backing beans. Instead of cluttering up the markup with cumbersome extra XML, the MyFaces Extensions Validator allows you to annotation the backing bean properties. It even adopts the applicable annotations (such ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged JSF Myfaces validate broken

org.hibernate.PropertyAccessException: could not get a field value by reflection getter of com.mypackage.MyEntity.entityId

Written by Tim on February 8, 2009

There are reports that messages of this sort were due to bugs in one or more Hibernate releases. But this is also a legitimate error. I wasted a lot of time before it hit me. The original code was: @SuppressWarnings(“unchecked”) public List<State> getStatesForCountry(String countryID) { final String SQLCOMMAND = “SELECT ( more… )

Posted In Better Software Design | Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged annoyances jpa hibernate

OpenJPA/Spring/Tomcat6

Written by Tim on November 16, 2008

Oh, what a tangled web we weave… In theory, using JPA and Spring is supposed to make magical things happen that will make me more productive and allow me to accomplish wonderful things. Someday. At the moment, I gain tons of productivity only to waste it when deployment time comes ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged hibernate | JPA | spring | Tomcat | tomcat6

JBoss and OpenJPA

Written by Tim on August 1, 2008

I developed my Technology Sandbox app using OpenJPA under Tomcat6. Since JBoss 4.2 has its own persistency mechanisms (EJB3 and Hibernate), it looked like some changes might be required to port it. It turns out that very little needed to be done. The most important thing is to get a ( more… )

Posted In Enterprise Java | Java Persistence Architecture (JPA) and related ORM
Tagged JBoss | openjpa | Tomcat Instrumentation | weaver

ORM and Imprecise Data Types

Written by Tim on July 23, 2008

JPA is great in a lot of ways. But there’s one problem a lot of people have with JPA and ORM in general – imprecise keys. Technically, this is as much a JDBC problem as an ORM problem. It just seems to cause more problems in ORM. Perhaps because ORM ( more… )

Posted In Java Persistence Architecture (JPA) and related ORM
Tagged date/time | floating-point | hibernate | Imprecise data types | JPA | ORM

Detached objects and JSF

Written by Tim on July 23, 2008

JSF and JPA have proven to be more problematic than expected. The upside of the JSF framework is that the datamodel objects can be presented more or less right up to the page view layer without recourse to Data Transer Objects (DTOs). The downside, is that what’s presented isn’t always ( more… )

Posted In Java Persistence Architecture (JPA) and related ORM
Tagged attach | detach | JPA | JSF | ORM

Categories

  • Android
  • Bad Practices
  • Better Software Design
  • Enterprise Java
  • Hardware
  • Internet of Things
  • Java Persistence Architecture (JPA) and related ORM
  • Libre Office
  • MillRight CNC
  • Random maniacal ravings
  • Stupid Linux Tricks
  • The Cloud
  • Uncategorized
May 2022
M T W T F S S
 1
2345678
9101112131415
16171819202122
23242526272829
3031  
« Jun    

Categories

  • Android
  • Bad Practices
  • Better Software Design
  • Enterprise Java
  • Hardware
  • Internet of Things
  • Java Persistence Architecture (JPA) and related ORM
  • Libre Office
  • MillRight CNC
  • Random maniacal ravings
  • Stupid Linux Tricks
  • The Cloud
  • Uncategorized

Tags

Android annoyances jpa hibernate Apache Arduino attach ATTiny85 centos centos 7 configuration date/time design detach DigiSpark documents Enterprise Java Facelets floating-point fonts graphviz hibernate howto IDE Imprecise data types JBoss JPA JSF linux Maven oowriter openjpa ORM recipe RichFaces scalable graphics security spring testing Tomahawk Tomcat tomcat5 tomcat6 Tomcat Instrumentation vector graphics weaver Xen

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2022. Things I wish I'd Known Earlier
Powered By WordPress and Auspicious