transient « Fetch « JPA Q&A





1. Hibernate not fetching public member    stackoverflow.com

Consider the following code:

@Entity
@Table(name = "a")
public class A implements Serializable
{
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name="id")
    public int id;

  ...

2. Problem with collection fetch join and transient field    forum.hibernate.org

/** */ @Entity @Table(name = "account") public class Account { ... @Column(name = "summ", nullable = false) private BigDecimal summ; ... @OneToMany(mappedBy = "account") private Set payments = new HashSet(); @Transient private BigDecimal sumPaid; ... }