[Lift] Re: JPA and annotations

2008-09-01 Thread Viktor Klang
Hi Oliver!

I think you need to qualiify the parameter:

@Column(name = NAME)

Cheers,
Viktor

On Mon, Sep 1, 2008 at 9:27 AM, Oliver [EMAIL PROTECTED] wrote:

 When I try to use the following annotation in a JPA labled entity in a
 Scala class

 @Column(columnName)

 I get a error: wrong number of arguments for constructor Column:
 ()javax.persistence.Column
 Same thing for a @Table(tableName)

 Any ideas?

 cheers
 Oliver



 



-- 
Viktor Klang
Rogue Software Architect

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---



[Lift] Re: JPA and annotations

2008-09-01 Thread Viktor Klang
Seems like my memory doesn't serve anyone any good today either,
here's hopefully the working solution (sitting @ work without access to my
beloved Scalac.

@Column{ var name=O_ID }


http://suereth.blogspot.com/2008/04/scala-annotations.html

On Mon, Sep 1, 2008 at 12:37 PM, Oliver [EMAIL PROTECTED] wrote:

 Viktor
 Well spotted - I shouldn't rely on my memory to write emails.
 Unfortunately,

 @Column(name = NAME)

 gives me exactly the same error.

 On Mon, Sep 1, 2008 at 6:32 PM, Viktor Klang [EMAIL PROTECTED]wrote:

 Hi Oliver!

 I think you need to qualiify the parameter:

 @Column(name = NAME)

 Cheers,
 Viktor


 On Mon, Sep 1, 2008 at 9:27 AM, Oliver [EMAIL PROTECTED] wrote:

 When I try to use the following annotation in a JPA labled entity in a
 Scala class

 @Column(columnName)

 I get a error: wrong number of arguments for constructor Column:
 ()javax.persistence.Column
 Same thing for a @Table(tableName)

 Any ideas?

 cheers
 Oliver







 --
 Viktor Klang
 Rogue Software Architect




 



-- 
Viktor Klang
Rogue Software Architect

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
Lift group.
To post to this group, send email to liftweb@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/liftweb?hl=en
-~--~~~~--~~--~--~---