Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » The import org.eclipse.persistence.annotations.OptimisticLocking cannot be resolved(Classes in org.eclipse.persistence.. not seen by Eclipse)
The import org.eclipse.persistence.annotations.OptimisticLocking cannot be resolved [message #1769683] Wed, 02 August 2017 15:44
Carl Cochet is currently offline Carl CochetFriend
Messages: 1
Registered: August 2017
Junior Member

As we can see here, I do have eclipselink-v2.6.0.jar in my Maven Dependencies included in the project build path.
We can also see on the left that both
import org.eclipse.persistence.annotations.OptimisticLocking; and
import org.eclipse.persistence.annotations.OptimisticLockingType;
classes are in the org.eclipse.persistence.annotations package.

But Eclipse keeps saying that they can't be resolved.
It can also be seen above a test that I've done : I tried to include all the annotations package :
import org.eclipse.persistence.annotations.*;
and it looks like Eclipse know what it is as no errors is to be seen here.
Though, the errors in the utilisation of OptimisticLocking stays. So it feels like Eclipse sees annotations, but it thinks it's empty. And afterward I noticed the problem is the same for ALL org.eclipse.persistence packages.

What's the problem?

Thanks for the help!
Previous Topic:History Tables for Entities using Single_Table Inheritance Strategy
Next Topic:How to close entity manager/ DB connection / unit of work when EntityFetchGroup is used
Goto Forum:

Current Time: Tue Feb 18 08:12:57 GMT 2020

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

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

Back to the top