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
# Prepare the centos installing these packages: | |
yum install make gcc gcc-c++ | |
# Install gem and passenger dependencies: | |
yum -y install zlib-devel curl-devel openssl-devel httpd-devel apr-devel apr-util-devel mysql-devel | |
# Go to ftp.ruby-lang.org and make the download of ruby, in this case: ruby-2.0.0-p247.tar.gz | |
# After download you have to untar it | |
tar zxvf ruby-2.0.0-p247.tar.gz |
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
package br.com.datatraffic.imagemweb.dominio.enumerator; | |
import java.io.Serializable; | |
import java.lang.reflect.Method; | |
import java.sql.PreparedStatement; | |
import java.sql.ResultSet; | |
import java.sql.SQLException; | |
import java.util.Properties; | |
import org.hibernate.HibernateException; |
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
@SuppressWarnings("unchecked") | |
protected T unproxy(T entity){ | |
if (entity == null) { | |
return null; | |
} | |
if (entity instanceof HibernateProxy) { | |
try { | |
Hibernate.initialize(entity); | |
} catch (ObjectNotFoundException e) { |
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
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<source>${compiler.version}</source> | |
<target>1.7</target> | |
</configuration> | |
</plugin> |
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
-startup | |
plugins/org.eclipse.equinox.launcher_1.3.0.v20130327-1440.jar | |
--launcher.library | |
plugins/org.eclipse.equinox.launcher.win32.win32.x86_1.1.200.v20130807-1835 | |
-product | |
org.eclipse.epp.package.jee.product | |
--launcher.defaultAction | |
openFile | |
-vm | |
E:/desenv/java/jdk1.7.0_21/bin/javaw.exe |
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
<property name="hibernate.c3p0.min_size" value="5"/> | |
<property name="hibernate.c3p0.max_size" value="20"/> | |
<property name="hibernate.c3p0.timeout" value="300"/> | |
<property name="hibernate.c3p0.max_statements" value="50"/> | |
<property name="hibernate.c3p0.idle_test_period" value="3000"/> |
NewerOlder