Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » (no subject)
(no subject) [message #716027] Tue, 16 August 2011 08:42
Eclipse UserFriend
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
Previous Topic:(no subject) [solved]
Next Topic:hibernate gotchas
Goto Forum:
  


Current Time: Sat Nov 22 14:24:19 GMT 2014

Powered by FUDForum. Page generated in 0.01874 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software