![]() ![]() By doing this we are changing the strategy for only that specific interaction with the database. ![]() ![]() This can be done in HQL and Criteria using the FetchMode clause. However this default strategy can be override from a specific method that access the database. It is true that we can map or annotate this Fetching strategy within the source code, for instance: (fetch = FetchType.EAGER) or lazy = “false” in XML, but it is also true that when we have a complex model with chaining dependent collections, problems usually arise when checking this by default. When using Hibernate the most common way to flag the associations Fetch strategy is by using the Lazy or Eager mode which can be established either with annotations or XML mapping files. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
January 2023
Categories |