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;
}
JPA 2.0 does not define any standard annotation for this.