I've got a table that maps to itself. I tried to construct correct
mapping file but I was unsuccessful and ended up with exception
### Cause: java.sql.SQLException: ORA-00900: invalid SQL statement
; bad SQL grammar []; nested exception is java.sql.SQLException:
ORA-00900: invalid SQL statement
CREATE TABLE period
(id_period NUMBER NOT NULL,
periodname VARCHAR2(255),
kod VARCHAR2(8),
par_id_period NUMBER,
begdate DATE,
enddate DATE,
flag VARCHAR2(2))
and bean:
public class Period {
private Long id;
private String name;
private String code;
private Period parent;
private Date begDate;
private Date endDate;
public enum Flag {
Y, Q, M
}
private Flag flag;
get... set...
}