Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] Undetected problem mapping fields to columns

Your classes are not correctly mapped. As you deliberately placed
@Column-annotations on the offending class members, I am not sure what you
are aiming at.

Please file an enhancement request, if you think, there should have been
some sort of validation error message while bootstapping the EMF.

-- Frank


Rui Jesus wrote:
> 
> JPA provider seems to be unable to detect a potential problem when mapping
> fields to columns.
> Having an hierarchy of entities using a single-table strategy, and two
> entities having fields with same name but different types, results that in
> a future persist action, a "java.sql.SQLDataException: data exception:
> invalid character value for cast" is thrown. This is because no two
> columns exist for the two different fields.
> I am using version "eclipselink-2.1.1.v20100817-r8050",
> Springframework-3.0.4, and JUnit-4.8.2.
> This problem one can reproduce!
> As annexes, I provide several files including java test files, captured
> console output, etc.
> 
> 

-- 
View this message in context: http://old.nabble.com/Undetected-problem-mapping-fields-to-columns-tp30194756p30213219.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top