[jboss-jira] [JBoss JIRA] (WFLY-6577) Unable to build Hibernate SessionFactory

vbndeveloper (JIRA) issues at jboss.org
Fri Apr 29 12:32:00 EDT 2016


     [ https://issues.jboss.org/browse/WFLY-6577?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

vbndeveloper updated WFLY-6577:
-------------------------------
    Steps to Reproduce: 
@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();
}

  was:
@Column(name = COLUMN_ACTIVE, nullable = false)
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();



> Unable to build Hibernate SessionFactory
> ----------------------------------------
>
>                 Key: WFLY-6577
>                 URL: https://issues.jboss.org/browse/WFLY-6577
>             Project: WildFly
>          Issue Type: Bug
>          Components: JPA / Hibernate
>    Affects Versions: 10.0.0.Final
>         Environment: Windows 7 Professional (64-bit)
> Java 8 u91 (64-bit)
> PostgreSQL 9.5 on Windows (64-bit)
>            Reporter: vbndeveloper
>            Assignee: Scott Marlow
>   Original Estimate: 1 hour
>  Remaining Estimate: 1 hour
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.4.11#64026)


More information about the jboss-jira mailing list