New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for meta annotations, so that users can define their own composite annotations #222

Closed
andyjefferson opened this Issue May 24, 2017 · 0 comments

Comments

Projects
None yet
1 participant
@andyjefferson
Member

andyjefferson commented May 24, 2017

If we have (JDO)

@PersistenceCapable
@Extension(vendorName="datanucleus", key="someOption", value="theValue")
public class MyClass {...}

and then define

@Target(TYPE)
@Retention(RUNTIME)
@PersistenceCapable
@Extension(vendorName="datanucleus", key="someOption", value="theValue")
public @interface ExtendedPersistable 
{
}

then we can simply define our class as

@ExtendedPersistable
public class MyClass {...}

The same applies to JPA. See JPA_SPEC-43

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment