I'm trying to add validation for date type in emf.ecore 2.23 as following examples
invariant validation1:
self.startDate.before(self.terminationDate);
or
invariant validation2:
self.startDate < self.terminationDate;
Using this link https://wiki.eclipse.org/EMF/Recipes#Recipe:_Generating_data_types_that_support_date.2Ftime_format, I included the date java.util.Date, but ocl still doesn't recognize methods. I also failed to add an EAnnotation type http:///org/eclipse/emf/ecore/util/DateConversionDelegate.