Here is the code:
public void storePartner(PartnerInfo partner) throws ConnectionException {
EntityManager entityManager = entityManagerFactory.createEntityManager();
entityManager.persist(partner);
entityManager.flush();
entityManager.close();
entityManagerFactory.close();
}
Here is the entity class:
@Entity
@Table(name="partners", schema = "myapp@myapp")
@XmlRootElement
@XmlAccessorType(XmlAccessType.FIELD)
public class PartnerInfo {
@Id
private String type;
@XmlElement(name="description")
@Column(name="description")
private String description;
@XmlElement(name="code")
@Column(name="code")
private String code;
@Column(name="image")
@XmlElement(name = "image")
private String imageUrl;
So, when I got new object PartnerInfo - everything is going well - I can find my new object in the cassandra database. But when I update object - for example, change only description - it stays unmodified. Why? How can I solve UPDATING with kundera and cassandra?
Kundera version: 2.6