---
title: "#anotation articles | Hashnode"
description: "Explore 13 articles tagged #anotation on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/anotation"
---

Tag

# #anotation

13 posts · 0 followers

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 16, 2025](https://hashnode.com/posts/techniques-to-map-subclasses-in-jpa-using-inheritancestrategy-joined/69411fad28466949be3a83bb)

### [Techniques to Map Subclasses in JPA Using @Inheritance(strategy = JOINED)](https://tuanhnet.hashnode.dev/techniques-to-map-subclasses-in-jpa-using-inheritancestrategy-joined?utm_source=hashnode&utm_medium=feed)

When we talk about mapping inheritance in JPA, we’re not just discussing a coding technique — we’re exploring how object-oriented design meets the relational world. The @Inheritance(strategy = JOINED) annotation is a bridge between a clean class ...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-to-map-subclasses-in-jpa-using-inheritancestrategy-joined?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 13, 2025](https://hashnode.com/posts/how-embeddedid-and-mapsid-work-together-to-handle-complex-composite-keys-in-jpa/693d2b3fede5b646d4b1d620)

### [How @EmbeddedId and @MapsId Work Together to Handle Complex Composite Keys in JPA](https://tuanhnet.hashnode.dev/how-embeddedid-and-mapsid-work-together-to-handle-complex-composite-keys-in-jpa?utm_source=hashnode&utm_medium=feed)

In the world of relational databases, it’s not uncommon to encounter tables where the primary key isn’t just a single column — it’s a combination of two or more columns. These are called composite keys. They usually appear in many-to-many join ta...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/how-embeddedid-and-mapsid-work-together-to-handle-complex-composite-keys-in-jpa?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 3, 2025](https://hashnode.com/posts/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed/692ffc2165418ab93b550d72)

### [Techniques Spring Uses to Create Beans from beans.xml — The Hidden XML Parsing Journey Revealed](https://tuanhnet.hashnode.dev/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed?utm_source=hashnode&utm_medium=feed)

In the modern Spring Boot world, where annotations like @Configuration and @ComponentScan dominate, it’s easy to forget that the roots of Spring lie in XML-based configuration. But here’s the thing — even when you use annotations, the core mechan...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-spring-uses-to-create-beans-from-beansxml-the-hidden-xml-parsing-journey-revealed?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Dec 2, 2025](https://hashnode.com/posts/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration/692eaab9b90eb8113df74227)

### [Techniques to Master Bean Visibility in Spring: Comparing @ComponentScan, @Import, and @Configuration](https://tuanhnet.hashnode.dev/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration?utm_source=hashnode&utm_medium=feed)

In any well-structured Spring application, managing bean visibility is like managing the backstage of a theater—too much exposure and you lose control; too little and your actors (beans) can’t perform. Developers often rely on annotations like @C...

6 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-to-master-bean-visibility-in-spring-comparing-componentscan-import-and-configuration?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Aug 27, 2025](https://hashnode.com/posts/managing-nested-object-serialization-with-jsonview-in-spring-boot/68aec932cd395913b0902b1c)

### [Managing Nested Object Serialization with @JsonView in Spring Boot](https://tuanhnet.hashnode.dev/managing-nested-object-serialization-with-jsonview-in-spring-boot?utm_source=hashnode&utm_medium=feed)

Serialization and deserialization play a vital role in building modern web applications. When working with nested objects, handling serialization while maintaining flexibility in exposing data becomes a challenge. How can you customize the way yo...

4 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/managing-nested-object-serialization-with-jsonview-in-spring-boot?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Apr 19, 2025](https://hashnode.com/posts/using-java-reflection-when-why-and-how-its-beneficial/68036630cce127c657d8a040)

### [Using Java Reflection: When, Why, and How It’s Beneficial](https://tuanhnet.hashnode.dev/using-java-reflection-when-why-and-how-its-beneficial?utm_source=hashnode&utm_medium=feed)

Begin with an indirect lead-in that discusses the versatility of Java in different programming contexts and introduces Reflection as a powerful but often misunderstood feature. Emphasize that while it enables developers to inspect and manipulate ...

4 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/using-java-reflection-when-why-and-how-its-beneficial?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Apr 7, 2025](https://hashnode.com/posts/using-formula-in-hibernate-a-comprehensive-guide-with-best-practices-code-examples-and-results/67f39436e174aea0e9b46122)

### [Using @Formula in Hibernate: A Comprehensive Guide with Best Practices, Code Examples, and Results](https://tuanhnet.hashnode.dev/using-formula-in-hibernate-a-comprehensive-guide-with-best-practices-code-examples-and-results?utm_source=hashnode&utm_medium=feed)

When working with Hibernate, there may be cases where you want to calculate or derive values for a specific entity field, rather than just map it to a database column. Hibernate’s @Formula annotation is a powerful tool that enables this functiona...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/using-formula-in-hibernate-a-comprehensive-guide-with-best-practices-code-examples-and-results?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Feb 28, 2025](https://hashnode.com/posts/differentiate-between-component-and-bean-annotations-in-spring/67c17b364d6b865dea9bdc5b)

### [Differentiate Between @Component and @Bean Annotations in Spring](https://tuanhnet.hashnode.dev/differentiate-between-component-and-bean-annotations-in-spring?utm_source=hashnode&utm_medium=feed)

When navigating the Spring framework, understanding how to properly manage and configure beans is crucial for effective application design. Among the key tools provided by Spring for bean management are the @Component and @Bean annotations. While...

3 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/differentiate-between-component-and-bean-annotations-in-spring?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Feb 17, 2025](https://hashnode.com/posts/techniques-for-using-repeat-annotation-in-java-unlocking-its-power-with-code-examples-and-demos/67b2fabf959b34011841fe19)

### [Techniques for Using Repeat Annotation in Java: Unlocking Its Power with Code Examples and Demos](https://tuanhnet.hashnode.dev/techniques-for-using-repeat-annotation-in-java-unlocking-its-power-with-code-examples-and-demos?utm_source=hashnode&utm_medium=feed)

In Java, annotations play a crucial role in making the code more understandable, maintainable, and powerful. While most Java developers are familiar with basic annotations, the need to apply the same annotation multiple times in various contexts ...

5 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/techniques-for-using-repeat-annotation-in-java-unlocking-its-power-with-code-examples-and-demos?utm_source=hashnode&utm_medium=feed)

[Tuanhdotnet](https://hashnode.com/@tuananh8) · [Feb 13, 2025](https://hashnode.com/posts/mastering-the-mapkey-annotation-for-map-relationships/67adb4d296547ef1b126acbb)

### [Mastering the @MapKey Annotation for Map Relationships](https://tuanhnet.hashnode.dev/mastering-the-mapkey-annotation-for-map-relationships?utm_source=hashnode&utm_medium=feed)

When working with Hibernate, managing relationships between entities efficiently is crucial for maintaining performance and clarity in your application. One powerful tool for this purpose is the @MapKey annotation, which provides a way to handle ...

4 min read · [tuanhnet.hashnode.dev](https://tuanhnet.hashnode.dev/mastering-the-mapkey-annotation-for-map-relationships?utm_source=hashnode&utm_medium=feed)
