Brett Meyer commented on Bug HHH-6935

I'm not able to reproduce this on Hibernate 4.1.7 and MySQL 5.1. The following passes w/o issue:

@Entity
public class VariousTypesEntity implements Serializable {
	@Id
	private Integer id;
	
	@Column
	private Boolean fooBool;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Boolean getFooBool() {
		return fooBool;
	}

	public void setFooBool(Boolean fooBool) {
		this.fooBool = fooBool;
	}
}
Session s = openSession();
		s.beginTransaction();
		VariousTypesEntity e = new VariousTypesEntity();
		e.setId( 1 );
		e.setFooBool( true );
		s.persist( e );
		s.getTransaction().commit();
		s.close();
		
		s = openSession();
		s.beginTransaction();
		Boolean b = (Boolean) s.createQuery( 
				"select e.fooBool from VariousTypesEntity e" ).uniqueResult();
		s.getTransaction().commit();
		s.close();
		
		assertTrue(b);

Do any of your test cases differ? Try again on 4.1.7?

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira