jpql

    4熱度

    1回答

    我試圖做一些事情,顯然不JPQL工作: JPQL: select c from Car c left join fetch c.owner where c.type in (?1) order by c.model 代碼: public List<Car> findCarsFilterByTypes(CarType[] types) { retur

    6熱度

    3回答

    我有有這樣的許多一對多關係的JPA對象: @Entity public class Role { //... @ManyToMany(fetch=FetchType.EAGER) @JoinTable( name="RolePrivilege", joinColumns= @JoinColumn(name="role", refere

    0熱度

    2回答

    我有以下字段定義在我的JPA實體之一: @Column(nullable = false, name = "start_time", columnDefinition= "TIMESTAMP WITH TIME ZONE") @Temporal(javax.persistence.TemporalType.TIMESTAMP) private Date startTime = new Dat

    2熱度

    4回答

    我使用Oracle數據庫10g和的EclipseLink,我需要獲得來自所以我創造了這個查詢 javax.persistence.Query q = em.createQuery("SELECT nvl(MAX(c.myAtt),0) " + "from myTable as c"); return Integer.parseInt(q.getS