Skip to content
Advertisement

Tag: mysql

How to search in table using multiple key and value?

I am trying to implement multiple select search using angular and spring boot. I got the select data form frontend in key and value pair. How can i write query to get the data from table? I am getting the data like this {“groom_Bride”:”groom”,”ageFrom”:”18″,”ageTo”:”24″,”city”:”Graduate”,”education”:”Graduate”} Please tell me how can i write query for search? Answer Here’s the skeleton using MVC.

Execute query with MySQL GET_LOCK function in Hibernate

My application uses Hibernate as ORM. I am trying to execute few mysql locking function within my application like GET_LOCK, IS_FREE_LOCK, RELEASE_LOCK (https://dev.mysql.com/doc/refman/5.6/en/locking-functions.html). However I am running into following issue: Here is my Dao code: I am not sure how to execute locking functions using Hibernate. Any help/pointer is appreciated. Thanks in advance. Answer I found the problem. It was

Advertisement