Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF "Technology" (Ecore Tools, EMFatic, etc)  » [teneo] unique/required java annotations
[teneo] unique/required java annotations [message #606870] Wed, 06 June 2007 15:19
Paul Gardiner is currently offline Paul GardinerFriend
Messages: 94
Registered: July 2009
Member
Are there annotations for uniqueness and required fields? I am using java
annotations, so I have interfaces like this:

/**
* @model
*/
public interface MyType extends EObject{
/**
* @model
*/
getId();
}

Then whenever I create a new "MyType", I check to see if one already exists
by using a query. After doing this a bunch of times, I figured there must
be an annotation for this, such as @model unique="true" required="true", or
something like that, but I can't find anything about it.

Thanks,
Paul
Previous Topic:[teneo] XML(Gregorian)Calendar or GregorianCalendar
Next Topic:[Teneo] How to specify attribute 'generated' for property in hibernate mapping via annotation?
Goto Forum:
  


Current Time: Mon Jan 25 15:06:34 GMT 2021

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

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

Back to the top