Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version: 3.0
Full stack trace of any exception that occurs:
org.hibernate.MappingException: Could not determine type for: Long, for columns: [org.hibernate.mapping.Column(ROWID)]
at org.hibernate.mapping.SimpleValue.getType(SimpleValue.java:265)
at org.hibernate.mapping.SimpleValue.isValid(SimpleValue.java:252)
at org.hibernate.mapping.Property.isValid(Property.java:174)
at org.hibernate.mapping.PersistentClass.validate(PersistentClass.java:325)
at org.hibernate.mapping.RootClass.validate(RootClass.java:188)
at org.hibernate.cfg.Configuration.validate(Configuration.java:816)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1050)
Name and version of the database you are using: Oracle 9i
I have a table and need to retrieve rows along with the row id. So I have configured this way:
<property
name="rowId"
type="Long"
column="ROWID"
insert="false"
/>
insert="false", becoz I dont want null rowid inserts. And java code is
private Long rowId;
public Long getRowId() {
return rowId;
}
public void setRowId(Long rowId) {
rowId=this.rowId;
}
Please let me know how I can retrieve rowid