This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
perl -pi -e "s/Factory/create/g" spec/models/* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
current_path=`pwd` | |
projects=(webdesk/webdesk webdesk/webdesk-provisioner webdesk/webdesk-product-api | |
webchat/webchat webchat/webchat-provisioner webchat/webchat-product-api | |
pabx-virtual/pabx-virtual-2011 pabx-virtual/pabx-provisioner | |
pabx-virtual/pabx-product-api pabx-virtual/ruby_pabx_core | |
saas_plan_config/saas_plan_config | |
locaweb-utilities/x9 package_pipeline/package_pipeline | |
product-apify/product-apify feed_consumer/feed_consumer |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Coloca isso no @before. Criar uma classe que faz isso ai é só chamar no before de cada classe. | |
No After faz a mesma coisa. | |
Connection connection = ConnectionHelper.getConnection(); | |
disableHsqldbDatabaseReferentialIntegrity(connection); | |
cleanInsert("dataset.xml", connection); | |
connection.close(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import br.com.caelum.vraptor.Intercepts; | |
import br.com.caelum.vraptor.Validator; | |
import br.com.caelum.vraptor.core.InterceptorStack; | |
import br.com.caelum.vraptor.http.MutableResponse; | |
import br.com.caelum.vraptor.interceptor.Interceptor; | |
import br.com.caelum.vraptor.resource.ResourceMethod; | |
import org.hibernate.Session; | |
import org.hibernate.Transaction; | |
@Intercepts |