Load: Used to retrieve an entity instance from the database based on its identifier, throwing an exception if not found.
Get: Used to retrieve an entity instance from the database based on its identifier, returning null if not found.
Load: It returns a proxy object without hitting the database until a method is called on it.
Get: It returns the actual object from the database immediately.
Load: Throws an ObjectNotFoundException if the object is not found in the database.
Get: Returns null if the object is not found in the database.
➡ 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