Search code examples
jpajpa-2.0eclipselink

Does JPA2 have a replacement for EclipseLinks @JoinFetch(@JoinFetchType.INNER)?


I have following code that uses EclipseLinks @JoinFetch annotation. Is it possible use JPA2 annotation to do the same thing or do I have to rely on JPA provider specific annotations?

@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "SOME_ID", nullable = false)
@JoinFetch(JoinFetchType.INNER)
@Override
public Something getSomething() {
    return this.something;
}

Solution

  • JPA 2.0 does not define any standard annotation for this.