Uploaded image for project: 'Tools (JBoss Tools)'
  1. Tools (JBoss Tools)
  2. JBIDE-18566

Show hints for standard JPA properties

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Unresolved
    • Major
    • 4.3.x
    • None
    • hibernate, upstream
    • None

    Description

      Enabling JPA facet on a project generates the following persistence.xml:

      <?xml version="1.0" encoding="UTF-8"?>
      <persistence version="2.1" xmlns="http://xmlns.jcp.org/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/persistence http://xmlns.jcp.org/xml/ns/persistence/persistence_2_1.xsd">
      <persistence-unit name="helloworld">
      </persistence-unit>
      </persistence>

      Adding <property> to <properties> should show hints for standard JPA properties. So a cursor placed within " and " for name should show all the standard JPA properties that are available. And may be even provider-specific properties as well.

      <properties>
      <property name="" value=""/>
      </properties>

      This will provide a simpler experience for developers.

      Attachments

        Activity

          People

            kaers@redhat.com Koen Aers
            arungupta_jira Arun Gupta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: