Hibernate is an object-relational mapping (ORM) framework in Java. Let's talk about the different states of an object's.
Transient: In Hibernate, an object is considered transient if it is not associated with any database table.
Persistent: An object becomes persistent when it is associated with a database table. It means the object must be associated with session object
Detached: An object becomes detached when it was once associated with a session but the session is closed or the object is explicitly detached.
➡ JSON, XML, and CSV are commonly used for data interchange! in RESTAPI's ok but what is data interchange!?? ⤵ ➡ data interchange format like a language that computers use to talk to each other. Just as people use different languages to communicate, like English, Spanish, or Chinese, computers use specific formats to exchange information. These formats make sure that data is structured in a way that both computers can understand, whether they're sharing data over the internet, saving it to a file, or passing it between different parts of a program. JSON(JavaScript Object Notation) : it used for representing structured data in RESTful APIs, particularly in Spring Web applications. Spring provides excellent support for JSON processing through libraries like Jackson, ➡ It is like writing down information in a way that's easy for both humans and computers to understand. It's a simple and readable format that's often used for transmitting data between a web server ...

Comments
Post a Comment