enter image description here

createCriteria cross out what it could be

    2 answers 2

    This means that the method has been annotated @deprecated , i.e. it is outdated and may even be removed in future versions of the library.

    You can press ctrl + click on the method , there may be written information that is preferable to use. Or study the library documentation.

    You can use this method, but be careful, problems are possible.

      This means that in the API used, this method (class) is deprecated. There is a newer version with similar (but, as a rule, improved) functionality and a different name, or this method is excluded from the current API as unnecessary, but left for compatibility).

      You can continue to use outdated methods if backward compatibility with past APIs is required, or use the proposed replacement if such compatibility is not required. There is also a small probability that in the future such a method will be completely excluded from future APIs, which will lead to the inoperability of the program on such APIs.