Apparently – no, obviously – you haven't even taken a look at the sample project. Otherwise you might have noticed that the test case I provided is using nothing but bloody Hibernate and JUnit:
ServiceRegistry serviceRegistry;
MetadataImplementor metadata;
@Before
public void setUp() {
StandardServiceRegistryBuilder registryBuilder = new StandardServiceRegistryBuilder();
registryBuilder.applySetting("hibernate.dialect", "org.hibernate.dialect.HSQLDialect");
registryBuilder.applySetting("hibernate.connection.driver_class", "org.hsqldb.jdbcDriver");
registryBuilder.applySetting("hibernate.connection.username", "sa");
registryBuilder.applySetting("hibernate.connection.password", "");
registryBuilder.applySetting("hibernate.connection.url", "jdbc:hsqldb:mem:test");
this.serviceRegistry = registryBuilder.build();
MetadataSources sources = new MetadataSources(serviceRegistry);
sources.addAnnotatedClass(Role.class);
sources.addAnnotatedClass(User.class);
this.metadata = (MetadataImplementor) sources.buildMetadata();
}
/**
* @see HHH-9788
*/
@Test
public void updatesSchemaCorrectly() {
SchemaExport schemaExport = new SchemaExport(serviceRegistry, metadata);
schemaExport.create(true, true);
SchemaUpdate schemaUpdate = new SchemaUpdate(serviceRegistry, metadata);
schemaUpdate.execute(true, true);
}
I don't know if it's me, but if someone gives me sample code, I claim to have a fix available and then the sample code provided still doesn't work, that's an interesting definition of "fix".
To be honest, after all this time I spent on this (and testing Hibernate 5 builds in general) I am really at a point where I outright state: I couldn't care less whether you fix that bloody schema update or not. I'm not gonna waste a single additional method on this as it's exactly what I just wrote: wasted time. I am really sick of being teased, and treated like a dumb ass for reporting bugs and trying to help to improve the project. Sick of tickets that get marked as resolved without even a commit being available in the repo that even remotely deals with the issue. Sick of getting nagged because you consider other libraries bull shit.
I've really spent a lot of time trying to convince people that the way users are treated in the Hibernate bug tracker is not as bad its reputation. Unfortunately there seems to be a lot of energy left to convince people otherwise. Be sure that this ticket has been and will be the last ticket I ever filed with Hibernate. I'm not going to importune your highness with dishonorable requests like these and let you shine in all the glorious bugs others are now entitled to to get in touch with you about.
|