hello,
I'am using ebean on play without problem on play 2.0.4 (ebean version 2.7.3)
But i don't understood that is happening with oracle
the sql build is not compatible with oracle
This is the Model class
package models.apogee;
import java.util.List;
import java.util.HashSet;
import java.util.Set;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import
javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.JoinTable;
import javax.persistence.ManyToMany;
import javax.persistence.OneToMany;
import javax.persistence.Table;
import play.db.ebean.Model.Finder;
import play.db.ebean.Model;
@Entity
@Table(name="INDIVIDU")
public class Individu extends Model {
//Code Etudiant au sein de l"Etablissement
@Id
@Column(name="COD_IND")
public long COD_IND;
//Nom Patronymique Etudiant
@Column(name="LIB_NOM_PAT_IND")
public String LIB_NOM_PAT_IND;
//prenom
@Column(name="LIB_PR1_IND")
public String LIB_PR1_IND;
//code du pays 100=france liaisons vers pays cod_pay
public String COD_PAY_NAT;
public static Finder<String, Individu> find = new Finder<>("apogee", String.class, Individu.class);
}
The sql build is
select t0.COD_IND c0, t0.LIB_NOM_PAT_IND c1, t0.LIB_PR1_IND c2, t0.cod_pay_nat c3
from INDIVIDU t0
where INDIVIDU.LIB_NOM_PAT_IND = ? and INDIVIDU.LIB_PR1_IND = ?
exception: Caused by: javax.persistence.PersistenceException: Query threw SQLException:ORA-00904: "INDIVIDU"."LIB_PR1_IND": invalid identifier
note this requette build byhand is correct
select COD_IND c0, LIB_NOM_PAT_IND c1, LIB_PR1_IND c2, cod_pay_nat c3
from INDIVIDU
where INDIVIDU.LIB_NOM_PAT_IND = 'ABBOUD' and INDIVIDU.LIB_PR1_IND like 'CL%'
here to see to cause db2 error
i don't have the hand on the db2 server
i don't know anything on it except how to connect by jdbc driver
i use a jar call ojdbc14.jar
...
I'am lost i see that sql build by ebean is not compatible with my oracle but i don't know that paraméter i can use
thanks for help , lionel