Spring Framework H2SequenceMaxValueIncrementer - top ranked examples from Open Source projects

These code examples were ranked by Codota’s semantic indexing as the best open source examples for Spring Framework H2SequenceMaxValueIncrementer class.

This code example shows how to use the following methods:
	} 
	 
	public H2TagRepository getTagRepository() { 
		H2TagRepository repository = new H2TagRepository();
		repository.setJdbcTemplate(this.jdbcTemplate);
		repository.setTagIdIncrementer(new H2SequenceMaxValueIncrementer(
			this.dataSource, "seq_tag_id"));
		return repository;
	} 
	 
	public H2FragmentRepository getFragmentRepository() { 
		H2FragmentRepository repository = new H2FragmentRepository();
		repository.setJdbcTemplate(this.jdbcTemplate);
		repository.setFragmentIdIncrementer(new H2SequenceMaxValueIncrementer(
			this.dataSource, "seq_fragment_id"));
		repository.setRelationIdIncrementer(new H2SequenceMaxValueIncrementer(
			this.dataSource, "seq_fragment_relation_id"));
		repository.setTagRepository(getTagRepository());
		repository.setFileRepository(this.fileRepository);
		return repository;
5
CodeRank
Contextual code suggestions in your IDE  Get Codota for Java