Search code examples
oracle-databasespring-roo

Spring Roo Oracle and Underscore


I have a question concerning spring roo and databases. I have a field called personName, in oracle to column is create as person_Name

I there a way to avoid the underscore. I suppose naming my column personname would fix this, but can I ask spring not to add the underscore ?


Solution

  • Roo by default refers to the JPA implementation to determine column names. You can override the defaults with the --column property:

    entity --class Foo
    field string --fieldName FooBar --column fooBar