Hibernate @GenericGenerator is not recognized by @GeneratedValue [message #434928] |
Fri, 11 July 2008 03:08 |
Eclipse User |
|
|
|
Originally posted by: fast40x-a.yahoo.com
I use a hibernate @GenericGenerator(name="MySeq" ...) to setup a generator
and use it with @GeneratedValue(generator = "MySeq"). The application
runs fine, but Eclipse reports an error of 'Unresolved generator name
"MySeq"'. Is there either a way to disable this error check or to
configure the project so that it recognized the "MySeq" generator?
|
|
|
Re: Hibernate @GenericGenerator is not recognized by @GeneratedValue [message #434931 is a reply to message #434928] |
Tue, 15 July 2008 13:46 |
Eclipse User |
|
|
|
Originally posted by: fast40x-a.yahoo.com
Ed Sunn wrote:
> I use a hibernate @GenericGenerator(name="MySeq" ...) to setup a generator
> and use it with @GeneratedValue(generator = "MySeq"). The application
> runs fine, but Eclipse reports an error of 'Unresolved generator name
> "MySeq"'.
I was wondering, if there is no way to turn off this check in Dali, and
there is no way to configure the project so Dali can recognize the
hibernate sequence, then maybe there is a way I can trick Dali by setting
up a JPA generator, but then somehow override that JPA generator with a
hibernate one, maybe just at runtime? If so, does anybody have an idea
how?
The reason this is an issue is that since Dali doesn't recognize the
hibernate generator, it mistakenly puts the red and white error marks in
Eclipse's Project Explorer. This is normally a helpful visual clue
whether the project is error free or not, but with Dali reporting this
false error, the visual clue isn't helpful.
Even if Dali doesn't want to work well with Hibernate, it still seems that
it should allow users to configure which error checks dali should perform.
|
|
|
|
Re: Hibernate @GenericGenerator is not recognized by @GeneratedValue [message #610627 is a reply to message #434928] |
Tue, 15 July 2008 13:46 |
Eclipse User |
|
|
|
Originally posted by: fast40x-a.yahoo.com
Ed Sunn wrote:
> I use a hibernate @GenericGenerator(name="MySeq" ...) to setup a generator
> and use it with @GeneratedValue(generator = "MySeq"). The application
> runs fine, but Eclipse reports an error of 'Unresolved generator name
> "MySeq"'.
I was wondering, if there is no way to turn off this check in Dali, and
there is no way to configure the project so Dali can recognize the
hibernate sequence, then maybe there is a way I can trick Dali by setting
up a JPA generator, but then somehow override that JPA generator with a
hibernate one, maybe just at runtime? If so, does anybody have an idea
how?
The reason this is an issue is that since Dali doesn't recognize the
hibernate generator, it mistakenly puts the red and white error marks in
Eclipse's Project Explorer. This is normally a helpful visual clue
whether the project is error free or not, but with Dali reporting this
false error, the visual clue isn't helpful.
Even if Dali doesn't want to work well with Hibernate, it still seems that
it should allow users to configure which error checks dali should perform.
|
|
|
|
Powered by
FUDForum. Page generated in 0.03248 seconds