I am getting started with Hibernate and I have such problem I do not understand such line in code I am analysing:
@JoinFormula( "REGEXP_REPLACE(phoneNumber, '\\+(\\d+)-.*', '\\1')::int" )
The source I am using is: https://docs.jboss.org/hibernate/orm/5.2/userguide/html_single/Hibernate_User_Guide.html#embeddables
I don't know where is the dependency between country Id and phoneNumber. Regards