Hi friends

Sometimes we want to persist a java object or a binary file using JPA that require a lot of memory . for this purpose we can use @Lob annotation . for example we want to store an java object in the database .
in the Entity we must declare a property like below :

private Serializable ob;

then we set ob property with my java object and then persist Entity .
When using @Lob it is best to mark the fetch type as lazy.

please insert ur comment

bye all