i have a query to find table details in MySQL using criteria API in hibernate Spring, like below to get 'Auto_increment' from table.
SELECT
Auto_increment
FROM information_schema.tables
WHERE table_name = 'the_table_you_want';
- My first question will be, is it possible to use criteria API to get information_schema details'?
- How to put it in criteria API to get required result ? Because i googled it on this topic i didn't find anywhere, where criteria is used to find schema details.