|(no subject) [message #716027]
||Tue, 16 August 2011 08:42
Originally posted by: |
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.
@OneToMany(targetEntity = SystemValueObject.class, mappedBy
@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 :-)
Powered by FUDForum
. Page generated in 0.02460 seconds