@@ -0,0 +1,1402 @@
+package com.vladmihalcea.hibernate.masterclass.laboratory.idgenerator;%0A%0Aimport javax.persistence.Entity;%0Aimport javax.persistence.GeneratedValue;%0Aimport javax.persistence.GenerationType;%0Aimport javax.persistence.Id;%0Aimport javax.persistence.Table;%0A%0Aimport org.junit.Test;%0A%0Aimport com.vladmihalcea.hibernate.masterclass.laboratory.util.AbstractMySQLIntegrationTest;%0A%0Apublic class AutoIdentifierMySQLTest extends AbstractMySQLIntegrationTest %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 boolean nativeHibernateSessionFactoryBootstrap() %7B%0A        return false;%0A    %7D%0A%0A    @Test%0A    public void test() %7B%0A        doInJPA(entityManager -%3E %7B%0A            for ( int i = 1; i %3C= 3; i++ ) %7B%0A                entityManager.persist(%0A                    new Post(%0A                        String.format(%0A                            %22High-Performance Java Persistence, Part %25d%22, i%0A                        )%0A                    )%0A                );%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(strategy = GenerationType.AUTO)%0A        private Long id;%0A%0A        private String title;%0A%0A        public Post() %7B%7D%0A%0A        public Post(String title) %7B%0A            this.title = title;%0A        %7D%0A    %7D%0A%7D%0A

Add test for MySQL AUTO identifier