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

Unable to build Hibernate SessionFactory

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 10.0.0.Final
    • JPA / Hibernate
    • None
    • 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(); }
    • User Experience
    • 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

            smarlow1@redhat.com Scott Marlow
            vbn_cio 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