@@ -0,0 +1,2113 @@
+package com.vladmihalcea.book.hpjp.hibernate.identifier.batch;%0A%0Aimport com.vladmihalcea.book.hpjp.util.providers.DataSourceProvider;%0Aimport com.vladmihalcea.book.hpjp.util.providers.Database;%0Aimport com.vladmihalcea.book.hpjp.util.providers.MariaDBDataSourceProvider;%0Aimport org.hibernate.dialect.MariaDB102Dialect;%0Aimport org.junit.Test;%0A%0Aimport javax.persistence.*;%0Aimport java.util.Properties;%0A%0Apublic class MariaDBIdentifierTest extends AbstractBatchIdentifierTest %7B%0A%0A    @Override%0A    protected Class%3C?%3E%5B%5D entities() %7B%0A        return new Class%3C?%3E%5B%5D %7B%0A                Post.class,%0A        %7D;%0A    %7D%0A%0A    @Override%0A    protected Database database() %7B%0A        return Database.MARIADB;%0A    %7D%0A%0A    /*@Override%0A    protected DataSourceProvider dataSourceProvider() %7B%0A        return new MariaDBDataSourceProvider() %7B%0A            @Override%0A            public String hibernateDialect() %7B%0A                return MariaDB102Dialect.class.getName();%0A            %7D%0A        %7D;%0A    %7D*/%0A%0A    @Override%0A    protected Properties properties() %7B%0A        Properties properties = super.properties();%0A        properties.put(%22hibernate.jdbc.batch_size%22, %2210%22);%0A        return properties;%0A    %7D%0A%0A    @Test%0A    public void testSequenceIdentifierGenerator() %7B%0A        doInJPA(entityManager -%3E %7B%0A            for (int i = 0; i %3C 3; i++) %7B%0A                Post post = new Post();%0A                post.setTitle(%0A                        String.format(%22High-Performance Java Persistence, Part %25d%22, i + 1)%0A                );%0A                entityManager.persist(post);%0A            %7D%0A        %7D);%0A    %7D%0A%0A    @Entity(name = %22Post%22)%0A    @Table(name = %22post%22)%0A    public static class Post %7B%0A%0A        @Id%0A        @GeneratedValue(%0A            strategy = GenerationType.SEQUENCE%0A        )%0A        private Long id;%0A%0A        private String title;%0A%0A        public Long getId() %7B%0A            return id;%0A        %7D%0A%0A        public void setId(Long id) %7B%0A            this.id = id;%0A        %7D%0A%0A        public String getTitle() %7B%0A            return title;%0A        %7D%0A%0A        public void setTitle(String title) %7B%0A            this.title = title;%0A        %7D%0A    %7D%0A%0A%7D%0A

Add test