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
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

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.

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: Thu Dec 01 14:55:20 GMT 2022

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

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

Back to the top