All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.webpieces.plugins.hibernate.HibernateRoutes Maven / Gradle / Ivy

Go to download

Someone forgot to fill this in. See http://stackoverflow.com/questions/38272550/how-to-fail-the-gradle-build-if-subproject-is-missing-a-property

There is a newer version: 1.9.95
Show newest version
package org.webpieces.plugins.hibernate;

import org.webpieces.router.api.routing.AbstractRoutes;
import org.webpieces.router.api.routing.PortType;

public class HibernateRoutes extends AbstractRoutes {

	@Override
	protected void configure() {
		//We could also add the TransactionFilter around internal error but usually that is not a good idea
		//as if the database goes down, you will end up with error to error to webpieces fail-safe 500 page which
		//does not look like your website
		//Also, we don't wrap NotFound but you could do that as well
		addFilter(".*", TransactionFilter.class, null, PortType.ALL_FILTER);
	}

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy