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
<?xml version="1.0"?> | |
<!DOCTYPE Configure PUBLIC "-//Jetty//Configure//EN" "http://www.eclipse.org/jetty/configure.dtd"> | |
<Configure id="Server" class="org.eclipse.jetty.server.Server"> | |
<New id="renaporeport" class="org.eclipse.jetty.plus.jndi.Resource"> | |
<Arg></Arg> | |
<Arg>renaporeport</Arg> | |
<Arg> | |
<New class="oracle.jdbc.pool.OracleDataSource"> | |
<Set name="DriverType">thin</Set> |
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
/* simplistic reset */ | |
* { | |
margin: 0; | |
padding: 0 | |
} | |
body { | |
font: 1em/1.5em Helvetica, Arial, sans-serif; | |
/* margin: 20px;*/ | |
} |
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
<!-- SPRING --> | |
<!-- Core utilities used by other modules. Define this if you use Spring | |
Utility APIs (org.springframework.core.*/org.springframework.util.*) --> | |
<dependency> | |
<groupId>org.springframework</groupId> | |
<artifactId>spring-core</artifactId> | |
<version>${org.springframework.version}</version> | |
</dependency> | |
<!-- Expression Language (depends on spring-core) Define this if you use |
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
<!-- Versión del plugin de jQuery para Struts 2--> | |
<struts2.jepert>3.4.0</struts2.jepert> | |
<!-- Dependencia básica--> | |
<dependency> | |
<groupId>com.jgeppert.struts2.jquery</groupId> | |
<artifactId>struts2-jquery-plugin</artifactId> | |
<version>${struts2.jepert}</version> | |
</dependency> | |
<!-- Depedencia para ocupar grid--> |
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
git config --global user.name "My Name" | |
git config --global user.email [email protected] | |
git config --global color.diff auto | |
git config --global color.status auto | |
git config --global color.branch auto | |
cd myproject | |
git init | |
git add . | |
git commit |
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
insert into tipocuenta values (1,'debito'); | |
insert into tipocuenta values (2,'credito'); | |
insert into banco values(1,'santander'); | |
insert into cliente values(1,'Nombre','Apaterno','Amaterno',23,1); | |
insert into cuenta values (1, 111, 1, 1); | |
insert into tipomovimiento (1,'deposito'); | |
insert into movimiento values(1,current_timestamp , 100, 1,1); | |
insert into movimiento values(2,current_timestamp , 200, 1,1); | |
insert into movimiento values(3,current_timestamp , 300, 1,1); |
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
Resolución de dudas: | |
Mapeo de llaves compuestas | |
Manejo de Daos dentro de Action, Pojos con múltiples Actions. | |
Contexto de sesión de hibernate | |
Lazy/eager feching | |
Equals and hash code | |
Consultas usando Criteria | |
Uso de DaoSupport de hibernate |
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
List cats = sess.createCriteria(Cat.class) | |
.add( Restrictions.in( "name", new String[] { "Fritz", "Izi", "Pk" } ) ) | |
.add( Restrictions.disjunction() | |
.add( Restrictions.isNull("age") ) | |
.add( Restrictions.eq("age", new Integer(0) ) ) | |
.add( Restrictions.eq("age", new Integer(1) ) ) | |
.add( Restrictions.eq("age", new Integer(2) ) ) | |
) ) | |
.list(); |
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
@Override | |
public int hashCode(){ | |
return new HashCodeBuilder() | |
.append(name) | |
.append(length) | |
.append(children) | |
.toHashCode(); | |
} | |
@Override |
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.show_sql">true</property> |