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

Unable to build Hibernate SessionFactory

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • 10.0.0.Final
    • JPA / Hibernate
    • None
    • Windows 7 Professional (64-bit)
      Java 8 u91 (64-bit)
      PostgreSQL 9.5 on Windows (64-bit)

    • 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

      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.

              smarlow1@redhat.com Scott Marlow
              vbn_cio Patrick Bakker (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved:

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