-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Retrieving Row id from oracle table
PostPosted: Fri Aug 11, 2006 6:25 pm 
Newbie

Joined: Fri Aug 11, 2006 6:18 pm
Posts: 1
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.