Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Column "rowid" cannot be resolved
Column "rowid" cannot be resolved [message #628839] Fri, 24 September 2010 11:43 Go to next message
Andrey  is currently offline Andrey
Messages: 4
Registered: September 2010
Junior Member
Is anybody know howto map Oralce ROWID?

I has received the error message:
Column "rowid" cannot be resolved on table "LOG"

when doing mapping like this:

@Entity
public class Log implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private ROWID rowid;

Re: Column "rowid" cannot be resolved [message #629243 is a reply to message #628839] Mon, 27 September 2010 15:13 Go to previous messageGo to next message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

Include the SQL and exception stack. Is this on an insert? The column must be marked as read-only (insertable/updateable=false)

In general mapping or making the ROWID the Id is not a good idea. If you really don't have an Id the either generate one, or make all of the columns the Id.


James : Wiki : Book : Blog : Twitter
Re: Column "rowid" cannot be resolved [message #630064 is a reply to message #629243] Thu, 30 September 2010 14:32 Go to previous message
Andrey  is currently offline Andrey
Messages: 4
Registered: September 2010
Junior Member
Thank you James!

It's my mistake. JPA specification doesn't support ROWID type and EclipseLink doesn't have such extension.
So, I should make the generated @Id for JPA Entity class.
Sad
Previous Topic:GF 3.1 + EclipseLink 2.1.1 - Map/Hashmap not working properly with changetracking enabled
Next Topic:Getting Results and Count from NamedQuery
Goto Forum:
  


Current Time: Mon Sep 22 10:27:44 GMT 2014

Powered by FUDForum. Page generated in 0.07638 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software