[vlma-devel] commit: There are fields we do not want to persist to disk. (Adrien Grand )

git version control git at videolan.org
Sun Nov 16 01:26:12 CET 2008


vlma | branch: master | Adrien Grand <jpountz at videolan.org> | Sat Nov 15 22:31:32 2008 +0100| [f7c54b5f36d2a42edb4559b1e2c4229fafe1c1b2] | committer: Adrien Grand 

There are fields we do not want to persist to disk.

> http://git.videolan.org/gitweb.cgi/vlma.git/?a=commit;h=f7c54b5f36d2a42edb4559b1e2c4229fafe1c1b2
---

 .../java/org/videolan/vlma/dao/VLMaDaoImpl.java    |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java b/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
index e381c21..718f3f3 100644
--- a/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
+++ b/vlma-core/src/main/java/org/videolan/vlma/dao/VLMaDaoImpl.java
@@ -86,6 +86,10 @@ public class VLMaDaoImpl implements VLMaDao {
         xstream.alias("streamingStrategy", StreamingStrategy.class);
         xstream.alias("announcement", StreamingStrategy.Announcement.class);
         xstream.alias("data", DataContainer.class);
+        xstream.omitField(Adapter.class, "isUp");
+        xstream.omitField(Program.class, "adapterName");
+        xstream.omitField(Program.class, "broadcastState");
+        xstream.omitField(Program.class, "player");
         xstream.setMode(XStream.XPATH_ABSOLUTE_REFERENCES);
     }
 



More information about the vlma-devel mailing list