Top "Annotations" questions

In programming, annotations are used to add information to a code element which cannot be expressed by the type system.

How does hibernate save one-to-many / many-to-one annotations? (Children not saving)

I've inherited a hibernate application and I've run into issues. It seems that the code does not save the child …

java hibernate annotations one-to-many many-to-one
What are good uses for Python3's "Function Annotations"

Function Annotations: PEP-3107 I ran across a snippet of code demonstrating Python3's function annotations. The concept is simple but …

python function annotations python-3.x
how to make a composite primary key (java persistence annotation)

How to make it so that the table user_roles defines the two columns (userID, roleID) as a composite primary …

java persistence annotations primary-key many-to-many
Custom annotation as Interceptor for a method logging

Java Gurus, I am pretty new for annotations and haven't searched for this a lot, so please bear with me... …

java logging annotations interceptor
What are variable annotations in Python 3.6?

Python 3.6 is about to be released. PEP 494 -- Python 3.6 Release Schedule mentions the end of December, so I went through …

python python-3.x annotations type-hinting python-3.6
Injecting externalized value into Spring annotation

I've been thinking around the Java feature that evaluates annotation values in compile-time and it seems to really make difficult …

java spring annotations spring-scheduled
How to annotate a list using @XmlElement?

I have the following annotation using javax.xml.bind.annotation.XmlElement: @XmlElement public List<String> getKeywords() { return keywords; } …

java xml jaxb annotations
How to retrieve annotated instance from Guice's injector?

Let's say I have a module: Module extends AbstractModule { @Override protected void configure() { bind(String.class). annotatedWith(Names.named("annotation")). …

java dependency-injection configuration annotations guice
Getting localized message from resourceBundle via annotations in Spring Framework

Is it possible to do this ? Currently it is done like this : <bean id="resource" class="org.springframework.context.…

java spring localization annotations resourcebundle
Create prototype scoped Spring bean with annotations?

Is it possible to convert the following XML configuration to an annotation based one? <bean id="myBean" class="my.…

java spring annotations scope javabeans