@Autowired
private Environment environment;
@Entity
@Table(name = "B")
public class B implements Serializable {
...
@Column(name = "data", nullable = false)
@Lob
@javax.persistence.Basic(fetch=FetchType.LAZY)
private byte[] data;
...
}
list.get(i).setName(newName);
Cat cat = list.get(i);
cat.setName(newName);
cat.setAge(newAge);