Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-6577

Unable to build Hibernate SessionFactory

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Duplicate Issue
    • Affects Version/s: 10.0.0.Final
    • Fix Version/s: None
    • Component/s: JPA / Hibernate
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      @Column(name = COLUMN_ACTIVE, nullable = true)
      public Boolean getActive()
      {
      return active;
      }

      public void setActive(Boolean active)
      {
      this.active = active;
      }

      @Transient
      public boolean isActive()
      {
      return this.active == null ? false : this.active.booleanValue();
      }

      Show
      @Column(name = COLUMN_ACTIVE, nullable = true) public Boolean getActive() { return active; } public void setActive(Boolean active) { this.active = active; } @Transient public boolean isActive() { return this.active == null ? false : this.active.booleanValue(); }
    • Affects:
      User Experience
    • Estimated Difficulty:
      Low

      Description

      The hibernate entity to schema validator fails on a scenario where you have a bean with a nullable Boolean getter/setter and also a convenience primitive boolean method decorated with a @Transient annotation.

      Ideally the validator would recognize javax.persistence.Transient annotated methods and ignore them when validating the database schema.

        Attachments

          Activity

            People

            Assignee:
            smarlow Scott Marlow
            Reporter:
            vbndeveloper Patrick Bakker (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 1 hour
                1h
                Remaining:
                Remaining Estimate - 1 hour
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified