Uploaded image for project: 'Forge'
  1. Forge
  2. FORGE-835

Forge field plugin doesn't support lobs / byte arrays

XMLWordPrintable

    • Icon: Feature Request Feature Request
    • Resolution: Done
    • Icon: Major Major
    • 1.2.3.Final
    • 1.2.2.Final
    • Builtin Plugins
    • None

      Right now Forge's field plugin supports most of the common Java/JPA types as commands (string, number, date, etc.). It also supports JPA relationships (one-to-many, etc.). However, a very common scenario for a Java EE developer is to store an image or other binary object into the database.

      In such situations the JPA best practices say that it should be declared as byte array field and annotated with @Lob.

      Forge should be able to generate such fields when the command:

      field lob --named <field-name> 
      

      is issued

      The exact name of the command (lob or bytearray or anything) is subject to discussion.

              ivan_stefanov Ivan St. Ivanov (Inactive)
              ivan_stefanov Ivan St. Ivanov (Inactive)
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: