[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [eclipselink-users] Problem with Discriminator Column
|
This is very odd, I can't see it possible for EclipseLink to be doing this.
Is the Query using native SQL?
Please include your code/xml for the class and superclasses, and the code
for the Query.
polvo wrote:
>
> I'm trying to move from toplink essentials to eclipselink and am having
> problems.
>
> I have a class in which I use the @DiscriminatorColumn annotation to
> specify a name other than "DTYPE"
>
> e.g.:
> @DiscriminatorColumn(name="MODULELAYOUT_TYPE")
>
> But instead of looking for a column named 'MODULELAYOUT_TYPE' instead of
> 'DTPYE' eclipseLink appears to be looking for both:
>
> Internal Exception:
> com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: Unknown column
> 'DTYPE' in 'field list'
> Error Code: 1054
>
> Call: SELECT ID, MODULELAYOUT_TYPE, ARRAYLAYOUTPARENT_ID, ARRAYBASE,
> ROWSANDPANELS, NUMBEROFGAPSPERROW, PANELGAPDISTANCE,
> NORTHSOUTHSPACEBETWEENPANELS, EASTWESTSPACEBETWEENMODULES, MODULE_ID,
> PARENT_ID, MODULERACKINGSYSTEM, DTYPE, NORTHSOUTHCLEARANCE,
> EASTWESTCLEARANCE FROM modulelayout WHERE (ARRAYLAYOUTPARENT_ID = ?) ORDER
> BY ID ASC
> bind => [13]
>
> bug?
>
>
-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland
http://www.eclipse.org/eclipselink/
EclipseLink , http://www.oracle.com/technology/products/ias/toplink/
TopLink
Wiki: http://wiki.eclipse.org/EclipseLink EclipseLink ,
http://wiki.oracle.com/page/TopLink TopLink
Forums: http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink ,
http://www.nabble.com/EclipseLink-f26430.html EclipseLink
Book: http://en.wikibooks.org/wiki/Java_Persistence Java Persistence
--
View this message in context: http://www.nabble.com/Problem-with-Discriminator-Column-tp22799188p22804945.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.