Announcement Announcement Module
No announcement yet.
Adding a new database type Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • Adding a new database type

    I'm looking for an elegant way of adding a new database type. I'm using version 2.1.2-RELEASE and an Ingres 9.2 database. I've created a custom incrementer and incrementer factory as described in other posts, but am now getting tripped up by the JobRepositoryFactory.

    If I don't inject a database type when using the JobRepositoryFactoryBean bean, the database type "INGRES" is read successfully from the DatabaseType.fromMetaData(...) method, but then falls over in DatabaseType.fromProductName:

    Caused by: java.lang.IllegalArgumentException: DatabaseType not found for product name: [INGRES]
    at mProductName(
    at mMetaData(

    If I do specify a database type when creating the JobRepositoryFactoryBean (i.e. "ingres"), then it falls over the in JobRepositoryFactoryBean.determineClobTypeToUse:

    Caused by: java.lang.IllegalArgumentException: No enum const class RES
    at java.lang.Enum.valueOf(
    at ueOf(
    at JobRepositoryFactoryBean.determineClobTypeToUse(Jo

    Obviously I can get around it by saying the my database type is DB2 or other and hacking my Incrementer to make this one of the supported databases, but it may confusing in the long-term and isn't the most elegant of solutions? I can't extend JobRepositoryFactoryBean as determineClobTypeToUse is private, so is there something I'm issing?


  • #2
    probably not. On the other hand, I am sure if you report the request in Jira it will be added.


    • #3
      I am also trying to use Roo with Ingres.

      Can anyone direct me to where I can submit a request to have
      Ingres added as one of the database types?