In this article, I would like to describe annotation of Spring Framework in Java.
๐ฎ Regarding JPA
@Entity
@Entity
annotation specifies that the class is an entity.@Entity
is a annotation which indicates a managed object of EntityManager.
@id
@id
applied at the field level to mark the field used for identiy purpose.
|
@Transient
@Transient
annotation in JPA is used to indicate that a field is not to be persisted in the database, i.e. their semantics are different.
๐ @Transactional
Springโs transaction management @Transactional
is generally used when updating/inserting records in multiple tables.
|
๐ Special Thanks
- http://blog.pepese.com/entry/20120613/1339573480
- https://stackoverflow.com/questions/13032948/how-to-create-and-handle-composite-primary-key-in-jpa
- https://stackoverflow.com/questions/2154622/why-does-jpa-have-a-transient-annotation
- https://qiita.com/NagaokaKenichi/items/a279857cc2d22a35d0dd
- https://qiita.com/TakuyaS/items/76a7d16608e7f3b4f9fd
๐ฅ Recommended VPS Service
VULTR provides high performance cloud compute environment for you.
Vultr has 15 data-centers strategically placed around the globe, you can use a VPS with 512 MB memory for just $ 2.5 / month ($ 0.004 / hour).
In addition, Vultr is up to 4 times faster than the competition, so please check it => Check Benchmark Results!!