[The Java Posse] JPA Column question

2010-05-12 Thread Sean
Dumb JPA question that I can't Google up the answer for... figuring someone on the Java Posse list must know :-) The DB I'm dealing with uses the _ character in just about every single column name. This then forces me to tediously use the column annotation over and over just to account for the _

Re: [The Java Posse] JPA Column question

2010-05-12 Thread Marcelo Fukushima
theres a way to change the default naming scheme that hibernate uses to generate column and table names with a class thats called NamingStrategy (or something very similar) On Wed, May 12, 2010 at 9:04 PM, Sean sean.c.comerf...@gmail.com wrote: Dumb JPA question that I can't Google up the

Re: [The Java Posse] JPA Column question

2010-05-12 Thread Steven Siebert
If you're using Netbeans (The Only IDE You Need :), you can use the db table-to-entity reverse engineer wizard (Entity Class From Database) and change the column names to any valid field name you would like right in the wizard and it will handle the @Column annotations for you. It also handles