Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8937742

Browse files
committed
Merge pull request #2 from sfaci/primer-proyecto
Primer proyecto
2 parents 0d33f21 + b94b281 commit 8937742

14 files changed

+966
-0
lines changed

‎HolaDb4o/.classpath

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" path="src"/>
4+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
5+
<classpathentry kind="lib" path="libs/db4o-8.0.249.16098-all-java5.jar"/>
6+
<classpathentry kind="lib" path="libs/jcalendar-1.4.jar"/>
7+
<classpathentry kind="lib" path="libs/jgoodies-common-1.2.0.jar"/>
8+
<classpathentry kind="lib" path="libs/jgoodies-looks-2.4.1.jar"/>
9+
<classpathentry kind="output" path="bin"/>
10+
</classpath>

‎HolaDb4o/.project

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>HolaDb4o</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
</buildSpec>
14+
<natures>
15+
<nature>org.eclipse.jdt.core.javanature</nature>
16+
</natures>
17+
</projectDescription>

‎HolaDb4o/grancasas.db4o

2.89 KB
Binary file not shown.
2.52 MB
Binary file not shown.

‎HolaDb4o/libs/jcalendar-1.4.jar

161 KB
Binary file not shown.

‎HolaDb4o/libs/jgoodies-common-1.2.0.jar

26.6 KB
Binary file not shown.

‎HolaDb4o/libs/jgoodies-looks-2.4.1.jar

384 KB
Binary file not shown.
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
package org.sfaci.holadb4o.base;
2+
3+
import java.util.Date;
4+
import java.util.List;
5+
6+
/**
7+
* Clase que representa un Centro Comercial
8+
* @author Santiago Faci
9+
* @version 1.0
10+
*
11+
*/
12+
public class CentroComercial {
13+
14+
private String nombre;
15+
private String direccion;
16+
private float extension;
17+
private Date fechaConstruccion;
18+
private List<Tienda> tiendas;
19+
20+
public CentroComercial() {}
21+
22+
public CentroComercial(String nombre, String direccion, float extension,
23+
Date fechaConstruccion, List<Tienda> tiendas) {
24+
this.nombre = nombre;
25+
this.direccion = direccion;
26+
this.extension = extension;
27+
this.fechaConstruccion = fechaConstruccion;
28+
this.tiendas = tiendas;
29+
}
30+
public String getNombre() {
31+
return nombre;
32+
}
33+
public void setNombre(String nombre) {
34+
this.nombre = nombre;
35+
}
36+
public String getDireccion() {
37+
return direccion;
38+
}
39+
public void setDireccion(String direccion) {
40+
this.direccion = direccion;
41+
}
42+
public float getExtension() {
43+
return extension;
44+
}
45+
public void setExtension(float extension) {
46+
this.extension = extension;
47+
}
48+
public Date getFechaConstruccion() {
49+
return fechaConstruccion;
50+
}
51+
public void setFechaConstruccion(Date fechaConstruccion) {
52+
this.fechaConstruccion = fechaConstruccion;
53+
}
54+
public List<Tienda> getTiendas() {
55+
return tiendas;
56+
}
57+
public void setTiendas(List<Tienda> tiendas) {
58+
this.tiendas = tiendas;
59+
}
60+
61+
62+
}
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
package org.sfaci.holadb4o.base;
2+
3+
import java.util.Date;
4+
5+
/**
6+
* Clase que representa una tienda
7+
* @author Santiago Faci
8+
* @version 1.0
9+
*
10+
*/
11+
public class Tienda {
12+
13+
private String nombre;
14+
private String descripcion;
15+
private int numeroLocal;
16+
private Date fechaApertura;
17+
18+
private CentroComercial centro;
19+
20+
public Tienda() {}
21+
22+
public Tienda(String nombre, String descripcion, int numeroLocal,
23+
Date fechaApertura, CentroComercial centro) {
24+
this.nombre = nombre;
25+
this.descripcion = descripcion;
26+
this.numeroLocal = numeroLocal;
27+
this.fechaApertura = fechaApertura;
28+
this.centro = centro;
29+
}
30+
31+
public String getNombre() {
32+
return nombre;
33+
}
34+
public void setNombre(String nombre) {
35+
this.nombre = nombre;
36+
}
37+
public String getDescripcion() {
38+
return descripcion;
39+
}
40+
public void setDescripcion(String descripcion) {
41+
this.descripcion = descripcion;
42+
}
43+
public int getNumeroLocal() {
44+
return numeroLocal;
45+
}
46+
public void setNumeroLocal(int numeroLocal) {
47+
this.numeroLocal = numeroLocal;
48+
}
49+
public Date getFechaApertura() {
50+
return fechaApertura;
51+
}
52+
public void setFechaApertura(Date fechaApertura) {
53+
this.fechaApertura = fechaApertura;
54+
}
55+
public CentroComercial getCentro() {
56+
return centro;
57+
}
58+
public void setCentro(CentroComercial centro) {
59+
this.centro = centro;
60+
}
61+
62+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /