package org.hibernate.test.hhh10708_bytecodeissue; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.Id; import javax.persistence.ManyToOne; import org.hibernate.annotations.Cache; import org.hibernate.annotations.CacheConcurrencyStrategy; @Entity public class Bar { public static final String FOO = "foo"; private int id; private Foo foo; @Id @GeneratedValue public int getId() { return id; } public void setId(int id) { this.id = id; } @ManyToOne @Cache(usage = CacheConcurrencyStrategy.READ_WRITE) public Foo getFoo() { return foo; } public void setFoo(Foo foo) { this.foo = foo; } }