Skip to Content.
Sympa Menu

perfsonar-dev - [pS-dev] [GEANT/SA2/ps-java-services] r5956 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/per sistence/entity

Subject: perfsonar development work

List archive

[pS-dev] [GEANT/SA2/ps-java-services] r5956 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/per sistence/entity


Chronological Thread 
  • From:
  • To:
  • Subject: [pS-dev] [GEANT/SA2/ps-java-services] r5956 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/per sistence/entity
  • Date: Fri, 17 Aug 2012 09:47:16 +0100 (BST)

Author: nordunet.behrmann
Date: 2012-08-17 09:47:16 +0100 (Fri, 17 Aug 2012)
New Revision: 5956

Modified:

trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
Log:
perfsonar-java-rrd-ma-SQL_backend: Set explicit table name

Without an explicit table name, persistence fails on systems with a
case sensitive file system. A table named "Interfaces" would be created,
but the subsequent query would be done for table "interfaces".

Modified:
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
===================================================================
---
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
2012-08-17 08:47:15 UTC (rev 5955)
+++
trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/org/perfsonar/service/measurementArchive/rrdType/storage/persistence/entity/Interfaces.java
2012-08-17 08:47:16 UTC (rev 5956)
@@ -3,10 +3,11 @@
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedNativeQuery;
+import javax.persistence.Table;


-
@Entity
+@Table(name="interfaces")
@NamedNativeQuery(name = Interfaces.ALL, query = "select * from interfaces
m", resultClass = Interfaces.class)
public class Interfaces {




  • [pS-dev] [GEANT/SA2/ps-java-services] r5956 - trunk/perfsonar-java-rrd-ma-SQL_backend/src/main/java/or g/perfsonar/service/measurementArchive/rrdType/storage/per sistence/entity, svn-noreply, 08/17/2012

Archive powered by MHonArc 2.6.16.

Top of Page