This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.ekiras.filter; | |
import org.springframework.core.annotation.Order; | |
import org.springframework.stereotype.Component; | |
import javax.servlet.*; | |
import java.io.IOException; | |
/** | |
* Created by ekansh on 22/10/15. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- based on http://www.microshell.com/database/mysql/emulating-nextval-function-to-get-sequence-in-mysql/ | |
-- might be needed | |
-- SET GLOBAL log_bin_trust_function_creators = 1; | |
CREATE TABLE `sequence_data` ( | |
`sequence_name` varchar(100) NOT NULL, | |
`sequence_increment` int(11) unsigned NOT NULL DEFAULT 1, | |
`sequence_min_value` int(11) unsigned NOT NULL DEFAULT 1, | |
`sequence_max_value` bigint(20) unsigned NOT NULL DEFAULT 18446744073709551615, |