Skip to content

DATAKV-129 - Allow usage of @AliasFor with @KeySpace. #19

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

Closed
wants to merge 3 commits into from

Conversation

christophstrobl
Copy link
Member

No description provided.

mp911de pushed a commit that referenced this pull request Mar 10, 2016
Undo quick hacks from previous commit and add test explicitly testing keyspace resolution.

Original pull request: #19.
mp911de added a commit that referenced this pull request Mar 10, 2016
Updated license header.

Original pull request: #19.
mp911de pushed a commit that referenced this pull request Mar 10, 2016
We now allow using Spring's meta-annotation programming model. Own meta-annotations can be composed using @keyspace and @AliasFor annotation.
Example for a custom meta-annotation corresponding with @keyspace("sessions"):

@Persistent
@retention(RetentionPolicy.RUNTIME)
@target({ ElementType.TYPE })
@keyspace
public @interface SessionsKeyspace {

	@AliasFor(annotation = KeySpace.class, attribute = "value")
	String name() default "sessions";
}

Original pull request: #19.
mp911de added a commit that referenced this pull request Mar 10, 2016
Updated license header.

Original pull request: #19.
christophstrobl and others added 2 commits March 10, 2016 17:04
We now allow using Spring's meta-annotation programming model. Own meta-annotations can be composed using @keyspace and @AliasFor annotation.
Example for a custom meta-annotation corresponding to @keyspace("sessions") when it's used with @SessionsKeyspace class MyEntity {…}:

@Persistent
@retention(RetentionPolicy.RUNTIME)
@target({ ElementType.TYPE })
@keyspace
public @interface SessionsKeyspace {

	@AliasFor(annotation = KeySpace.class, attribute = "value")
	String name() default "sessions";
}

Original pull request: #19.
Updated license header.

Original pull request: #19.
mp911de pushed a commit that referenced this pull request Mar 10, 2016
We now allow using Spring's meta-annotation programming model. Own meta-annotations can be composed using @keyspace and @AliasFor annotation.
Example for a custom meta-annotation corresponding to @keyspace("sessions") when it's used with @SessionsKeyspace class MyEntity {…}:

@Persistent
@retention(RetentionPolicy.RUNTIME)
@target({ ElementType.TYPE })
@keyspace
public @interface SessionsKeyspace {

	@AliasFor(annotation = KeySpace.class, attribute = "value")
	String name() default "sessions";
}

Original pull request: #19.
mp911de added a commit that referenced this pull request Mar 10, 2016
Updated license header.

Original pull request: #19.
@mp911de
Copy link
Member

mp911de commented Mar 10, 2016

Merged with b40c8c1.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants