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 9c031d2

Browse files
committed
Últimos cambios
1 parent 967e760 commit 9c031d2

File tree

8 files changed

+240
-100
lines changed

8 files changed

+240
-100
lines changed

‎.gitignore‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,5 @@
33
# Package Files #
44
*.war
55
*.ear
6+
7+
.DS_Store

‎HolaDb4o/.idea/workspace.xml‎

Lines changed: 177 additions & 67 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎HolaDb4o/grancasas.db4o‎

3.29 KB
Binary file not shown.

‎HolaDb4o/src/org/sfaci/holadb4o/base/CentroComercial.java‎

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package org.sfaci.holadb4o.base;
22

3+
import java.util.ArrayList;
34
import java.util.Date;
45
import java.util.List;
56

@@ -17,7 +18,9 @@ public class CentroComercial {
1718
private Date fechaConstruccion;
1819
private List<Tienda> tiendas;
1920

20-
public CentroComercial() {}
21+
public CentroComercial() {
22+
tiendas = new ArrayList<Tienda>();
23+
}
2124

2225
public CentroComercial(String nombre, String direccion, float extension,
2326
Date fechaConstruccion, List<Tienda> tiendas) {
@@ -26,6 +29,7 @@ public CentroComercial(String nombre, String direccion, float extension,
2629
this.extension = extension;
2730
this.fechaConstruccion = fechaConstruccion;
2831
this.tiendas = tiendas;
32+
2933
}
3034
public String getNombre() {
3135
return nombre;

‎HolaDb4o/src/org/sfaci/holadb4o/gui/HolaDb4o.java‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@
2828
import javax.swing.event.ChangeEvent;
2929
import javax.swing.event.ChangeListener;
3030

31+
import com.db4o.config.EmbeddedConfiguration;
32+
import com.db4o.ta.TransparentActivationSupport;
33+
import org.sfaci.holadb4o.base.CentroComercial;
3134
import org.sfaci.holadb4o.base.Tienda;
3235
import org.sfaci.holadb4o.util.Constantes;
3336
import org.sfaci.holadb4o.util.Util;
@@ -105,7 +108,10 @@ private void inicializar() {
105108
private void conectar() {
106109

107110
// Conecta con la Base de Datos (si el fichero no existe lo creará)
111+
EmbeddedConfiguration configuracion = Db4oEmbedded.newConfiguration();
112+
configuracion.common().add(new TransparentActivationSupport());
108113
Util.db = Db4oEmbedded.openFile(Db4oEmbedded.newConfiguration(), Constantes.DATABASE_FILENAME);
114+
109115
}
110116

111117
/**

‎HolaDb4o/src/org/sfaci/holadb4o/gui/JTablaTiendas.java‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,13 @@
22

33
import java.text.ParseException;
44
import java.text.SimpleDateFormat;
5+
import java.util.ArrayList;
56
import java.util.List;
67

78
import javax.swing.JTable;
89
import javax.swing.table.DefaultTableModel;
910

11+
import org.sfaci.holadb4o.base.CentroComercial;
1012
import org.sfaci.holadb4o.base.Tienda;
1113
import org.sfaci.holadb4o.util.Constantes;
1214
import org.sfaci.holadb4o.util.Util;

‎db4o_cliente/.idea/workspace.xml‎

Lines changed: 11 additions & 11 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎db4o_servidor/.idea/workspace.xml‎

Lines changed: 37 additions & 21 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
(0)

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