(no subject) [message #716027] |
Tue, 16 August 2011 08:42 |
Eclipse User |
|
|
|
Originally posted by:
Hello,
i was sentenced to migrate a RAP application from Hibernate to
eclipselink. I am a GUI developer, so forgive me if the question is dumb.
I have to replace the hibernate @where annotations in our code.
It's used to filter the correct subclass into a set from a SINGLE_TABLE
using the DiscriminatorValue.
Example:
@OneToMany(targetEntity = SystemValueObject.class, mappedBy
="productversionCatalog")
@Where(clause="TECH_CLASS_TYPE = 'TEXT_TYPE'")
private Set<TextFormatType> textFormatTypes = new HashSet<TextFormatType>();
How would you do this with JPA/Eclipselink ?
Funny enough there's a page on migrating hibernate to eclipselink on the
eclipse wiki. It ends exactly at the point where it would get
interesting for me :-)
http://wiki.eclipse.org/EclipseLink/Examples/JPA/Migration/Hibernate/V3Annotations#.40Where
Thanks,
markus
|
|
|
Powered by
FUDForum. Page generated in 0.02776 seconds