> -----Original Message----- > From: Michael Dick [mailto:[email protected]] > Sent: Tuesday, January 05, 2010 3:01 PM > To: [email protected] > Subject: Re: Is it feasible for OpenJPA to validate column names with > metadata? > > Hi David, > > The openjpa.SchemaFactory can do up-front validation of your schema. > The > relevant section of the documentation is here (from trunk, but it's > largely > the same for 1.2 and 1.0) : > http://openjpa.apache.org/builds/latest/docs/manual/manual.html#ref_gui > de_schema_info_factory
Looks good. For me, I would say that a "best practice" would be to set this to "native" for a development environment. I'll have to review the best strategies for overriding this in my development environment. > On Mon, Dec 28, 2009 at 1:37 PM, KARR, DAVID (ATTCINW) > <[email protected]>wrote: > > > If I specify a column name in my mappings that is incorrect, I get > very > > unhelpful error messages (like "size data unit" errors). I'm not > aware > > of a capability in OpenJPA to validate column names and other things > > using the database metadata. Is that something that's in the realm > of > > possibilities, and something that might be reasonable as an > enhancement? > >
