branch feature/6944 updated (e14b489 -> 360fd05)
This is an automated email from the git hooks/post-receive script. New change to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git from e14b489 fix default values map options new 62068e3 refs #6964 ajout de l'id de la marée à repliquer new c4dcfe0 refs #6964 migration 4.0-RC3 pour ajouter les index sur fk manquants + regeneration de ces index via hibernate new ba5988f passage sur topia en snapshot pour la generation des index new 1df36b0 refs #6978 ajout icone pour l'action de consolidation des données new a6da7de refs #6977 amélioration du layout new d010e19 refs #6983 Ajout migration de usedInTrip pour l'engin Senne pour toutes les marées de type senne new b5eb644 refs #6975 mise en lazy de GearCaracteristicType car toujours utilise new 4dfb4f0 refs #6976 Add default measurements when creating a new gearusefeature new 2836c5d refs #6986 revue de la gestion du quadrant sur l'écran d'opération de peche palangre new 6dc7d9a refs #6988 bien réinitilisé le quadrant sur les écrans d'activité new 4645d56 refs #6475 ajout des traductions françaises à partir du fichier fourni dans le ticket new 9753766 refs #6475 revue de la décoration des calées new 5915a0c refs #6983 mise à jour aussi du topiaversion new 42101d5 refs #6991 ajout migration pour renommage du palangrier inconnu new e93fc76 add migration db for tests new 30befff use last release of topia new da613b2 [jgitflow-maven-plugin]updating poms for 4.0-RC4-SNAPSHOT development new 055b734 add missing license headers new 94f5263 [jgitflow-maven-plugin]updating poms for branch'release/4.0-RC3' with non-snapshot versions new 0618db0 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts new 360fd05 [jgitflow-maven-plugin]Updating develop poms back to pre merge state The 21 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit 360fd050006067bb92bb4e8bfe9b616195448ce2 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:45:11 2015 +0000 [jgitflow-maven-plugin]Updating develop poms back to pre merge state commit 0618db0735425fda05cde3c194cd147462ffe76e Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:45:10 2015 +0000 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts commit 94f5263bf7c7ea5a06e219b9705d29caf8cb8e15 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:40:30 2015 +0000 [jgitflow-maven-plugin]updating poms for branch'release/4.0-RC3' with non-snapshot versions commit 055b7340e3cb115964f36032eaa328c13dc4f69a Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:36:11 2015 +0000 add missing license headers commit da613b27c5d4ccbd1b7d5b2a680b74aea03f7d69 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:05:43 2015 +0000 [jgitflow-maven-plugin]updating poms for 4.0-RC4-SNAPSHOT development commit 30befff0acb8f567ce04e71aa3a39e711625438a Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 12:04:29 2015 +0200 use last release of topia commit e93fc7619a7ef222aea6e3ba6f0e562854fb4930 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:50:43 2015 +0200 add migration db for tests commit 42101d5f2b5607c97382389d6d41c249bb6ac16b Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:47:07 2015 +0200 refs #6991 ajout migration pour renommage du palangrier inconnu commit 5915a0cc6f8d1e2251559e62e18ca5c02d2c515e Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:41:34 2015 +0200 refs #6983 mise à jour aussi du topiaversion commit 9753766c2daa88bfe4af98d92695ff5e1f1e1b05 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:40:45 2015 +0200 refs #6475 revue de la décoration des calées commit 4645d56b55b8a293eff8c611ebe0218dbbb5fbff Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:22:24 2015 +0200 refs #6475 ajout des traductions françaises à partir du fichier fourni dans le ticket commit 6dc7d9af6cb3b4da3de6730d7bdb725a5ad022f8 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 23:08:02 2015 +0200 refs #6988 bien réinitilisé le quadrant sur les écrans d'activité commit 2836c5d5689d03a0a0c9b5320d93dafe09812425 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 23:03:47 2015 +0200 refs #6986 revue de la gestion du quadrant sur l'écran d'opération de peche palangre commit 4dfb4f08ab5bce434dbae1f9c2efef2d14200aa5 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 20:41:43 2015 +0200 refs #6976 Add default measurements when creating a new gearusefeature commit b5eb644e938e65f2f68e021fa44459e8d2b6e3f8 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 20:00:28 2015 +0200 refs #6975 mise en lazy de GearCaracteristicType car toujours utilise commit d010e19d6600c1eca3659907b4d201dc351ea996 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:35:58 2015 +0200 refs #6983 Ajout migration de usedInTrip pour l'engin Senne pour toutes les marées de type senne commit a6da7de0fe284257ed2b7af9ab3020a88dd79921 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:25:34 2015 +0200 refs #6977 amélioration du layout commit 1df36b03a392cd49ea0032c46031913805772008 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:13:00 2015 +0200 refs #6978 ajout icone pour l'action de consolidation des données commit ba5988f095b9b1ce7a6d445353c334bec771d29d Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:07:31 2015 +0200 passage sur topia en snapshot pour la generation des index commit c4dcfe0a04fefb68752677012a4c8f3c4fdbeb41 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:05:00 2015 +0200 refs #6964 migration 4.0-RC3 pour ajouter les index sur fk manquants + regeneration de ces index via hibernate commit 62068e32acda1cf45c12811a7e4ff8a8b160181c Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 18:57:05 2015 +0200 refs #6964 ajout de l'id de la marée à repliquer Summary of changes: observe-business/pom.xml | 2 +- .../src/main/java/fr/ird/observe/DataService.java | 28 ++ .../main/java/fr/ird/observe/DecoratorService.java | 2 + .../java/fr/ird/observe/db/ReplicationService.java | 4 +- .../db/{4.0-RC2 => 4.0-RC3}/referentiel.sql.gz | Bin 138115 -> 138124 bytes observe-entities/pom.xml | 2 +- .../src/main/java/fr/ird/observe/entities/Set.java | 3 + .../observe/entities/longline/SetLonglineImpl.java | 26 +- .../migration/AbstractDataSourceMigration.java | 5 +- .../DataSourceMigrationForVersion_4_0_RC3.java | 282 +++++++++++++++++++++ .../ird/observe/entities/seine/SetSeineImpl.java | 8 +- .../db/4.0-RC3/add-foreign-key-indexes-PG.sql | 65 +++++ .../rename-unknown-longliner-H2.sql} | 2 +- .../rename-unknown-longliner-PG.sql} | 2 +- .../update-senne-gear-usedInTrip-H2.sql} | 2 +- .../update-senne-gear-usedInTrip-PG.sql} | 2 +- .../src/main/xmi/observe-common.properties | 4 +- .../src/main/xmi/observe-longline.properties | 2 +- .../src/main/xmi/observe-seine.properties | 2 +- observe-swing/pom.xml | 2 +- .../src/main/filters/observe-ui.properties | 1 + .../ird/observe/ui/content/ContentUIHandler.java | 28 ++ .../ui/content/impl/longline/SetLonglineUI.css | 8 +- .../impl/longline/SetLonglineUIHandler.java | 42 +++ .../content/impl/longline/SetLonglineUIModel.java | 8 +- .../observe/ui/content/impl/seine/SetSeineUI.jaxx | 72 +++--- .../impl/longline/ActivityLonglineUIHandler.java | 16 ++ .../open/impl/seine/ActivitySeineUIHandler.java | 15 ++ .../impl/seine/GearUseFeaturesSeineTableModel.java | 37 ++- .../impl/seine/GearUseFeaturesSeineUIHandler.java | 20 ++ .../ui/tree/AbstractObserveTreeCellRenderer.java | 10 + .../loadors/ActivityLonglineNodeChildLoador.java | 1 + .../tree/loadors/ActivitySeineNodeChildLoador.java | 1 + .../EditableTableWithCacheTableModelSupport.java | 4 +- .../resources/i18n/observe-swing_en_GB.properties | 2 + .../resources/i18n/observe-swing_es_ES.properties | 2 + .../resources/i18n/observe-swing_fr_FR.properties | 140 +++++----- observe-validation/pom.xml | 2 +- .../i18n/observe-validation_fr_FR.properties | 12 +- pom.xml | 4 +- 40 files changed, 718 insertions(+), 152 deletions(-) copy observe-business/src/test/resources/db/{4.0-RC2 => 4.0-RC3}/referentiel.sql.gz (52%) create mode 100644 observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java create mode 100644 observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql copy observe-entities/src/main/resources/db/{3.11/add-activity-ersId-H2.sql => 4.0-RC3/rename-unknown-longliner-H2.sql} (81%) copy observe-entities/src/main/resources/db/{3.11/add-activity-ersId-H2.sql => 4.0-RC3/rename-unknown-longliner-PG.sql} (81%) copy observe-entities/src/main/resources/db/{3.11/add-activity-ersId-H2.sql => 4.0-RC3/update-senne-gear-usedInTrip-H2.sql} (82%) copy observe-entities/src/main/resources/db/{3.11/add-activity-ersId-H2.sql => 4.0-RC3/update-senne-gear-usedInTrip-PG.sql} (82%) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 62068e32acda1cf45c12811a7e4ff8a8b160181c Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 18:57:05 2015 +0200 refs #6964 ajout de l'id de la marée à repliquer --- .../src/main/java/fr/ird/observe/db/ReplicationService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/observe-business/src/main/java/fr/ird/observe/db/ReplicationService.java b/observe-business/src/main/java/fr/ird/observe/db/ReplicationService.java index da02d00..c531527 100644 --- a/observe-business/src/main/java/fr/ird/observe/db/ReplicationService.java +++ b/observe-business/src/main/java/fr/ird/observe/db/ReplicationService.java @@ -162,7 +162,7 @@ public class ReplicationService { return; } // topiaIds = TopiaEntityHelper.getTopiaIdArray(srcTripSeines); - topiaIds= allIds.toArray(new String[allIds.size()]); + topiaIds = allIds.toArray(new String[allIds.size()]); } catch (TopiaException e) { throw new DataSourceException(e, "replicateData"); @@ -257,7 +257,7 @@ public class ReplicationService { TopiaContext srcCtxt = srcService.beginTransaction("replicateData"); try { TopiaEntity e = srcCtxt.findByTopiaId(id); - String label = t(DecoratorService.getEntityLabel(e.getClass())); + String label = t(DecoratorService.getEntityLabel(e.getClass())) + " :: " + id; srcService.fireNewMessage(t("observe.storage.message.replicate.data.entity", label, dstLabel)); if (e instanceof Trip && Entities.isLonglineId(id)) { -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit c4dcfe0a04fefb68752677012a4c8f3c4fdbeb41 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:05:00 2015 +0200 refs #6964 migration 4.0-RC3 pour ajouter les index sur fk manquants + regeneration de ces index via hibernate --- .../migration/AbstractDataSourceMigration.java | 5 +- .../DataSourceMigrationForVersion_4_0_RC3.java | 254 +++++++++++++++++++++ .../db/4.0-RC3/add-foreign-key-indexes-PG.sql | 44 ++++ .../src/main/xmi/observe-common.properties | 3 +- .../src/main/xmi/observe-longline.properties | 2 +- .../src/main/xmi/observe-seine.properties | 2 +- 6 files changed, 306 insertions(+), 4 deletions(-) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/migration/AbstractDataSourceMigration.java b/observe-entities/src/main/java/fr/ird/observe/entities/migration/AbstractDataSourceMigration.java index 19d34b2..4cfa18c 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/migration/AbstractDataSourceMigration.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/migration/AbstractDataSourceMigration.java @@ -74,11 +74,14 @@ public abstract class AbstractDataSourceMigration extends TopiaMigrationCallback public static final Version V_3_15 = Versions.valueOf("3.15"); public static final Version V_3_16 = Versions.valueOf("3.16"); + public static final Version V_4_0_RC2 = Versions.valueOf("4.0-RC2"); + public static final Version V_4_0_RC3 = Versions.valueOf("4.0-RC3"); + /** Les versions de mise à jour disponibles. */ public static final Version[] availableVersions = new Version[]{ - V_3_1, V_3_5, V_3_7, V_3_8, V_3_9, V_3_10, V_3_11, V_3_12, V_3_14, V_3_15, V_3_16,V_4_0_RC2 + V_3_1, V_3_5, V_3_7, V_3_8, V_3_9, V_3_10, V_3_11, V_3_12, V_3_14, V_3_15, V_3_16, V_4_0_RC2, V_4_0_RC3 }; private static Supplier<ApplicationConfig> applicationConfigSupplier; diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java new file mode 100644 index 0000000..e34b5b6 --- /dev/null +++ b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java @@ -0,0 +1,254 @@ +package fr.ird.observe.entities.migration.versions; + +import fr.ird.observe.entities.migration.AbstractDataSourceMigration; +import fr.ird.observe.entities.migration.AbstractObserveMigrationCallBack; +import fr.ird.observe.entities.migration.H2DataSourceMigration; +import fr.ird.observe.entities.migration.PGDataSourceMigration; +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; +import org.hibernate.jdbc.Work; +import org.nuiton.topia.TopiaException; +import org.nuiton.topia.framework.TopiaContextImplementor; + +import java.sql.Connection; +import java.sql.PreparedStatement; +import java.sql.ResultSet; +import java.sql.SQLException; +import java.util.HashSet; +import java.util.List; +import java.util.Set; + +/** + * Created on 4/16/15. + * + * @author Tony Chemit - chemit@codelutin.com + * @since 4.0-RC3 + */ +public abstract class DataSourceMigrationForVersion_4_0_RC3 extends AbstractObserveMigrationCallBack { + + /** Logger. */ + private static final Log log = LogFactory.getLog(DataSourceMigrationForVersion_4_0_RC3.class); + + protected abstract void addMissingForeignKeys(TopiaContextImplementor tx, List<String> queries) throws TopiaException; + + public DataSourceMigrationForVersion_4_0_RC3(AbstractDataSourceMigration callBack, String scriptSuffix) { + super(AbstractDataSourceMigration.V_4_0_RC3, callBack, scriptSuffix); + } + + @Override + protected void prepareMigrationScript(TopiaContextImplementor tx, + List<String> queries, + boolean showSql, + boolean showProgression) throws TopiaException { + + + addMissingForeignKeys(tx, queries); + + } + + public static class H2DataSourceMigrationForVersion extends DataSourceMigrationForVersion_4_0_RC3 { + + public H2DataSourceMigrationForVersion(AbstractDataSourceMigration callBack) { + super(callBack, H2DataSourceMigration.TYPE); + } + + @Override + protected void addMissingForeignKeys(TopiaContextImplementor tx, List<String> queries) { + // Nothing to do for h2 db + } + + } + + public static class PGDataSourceMigrationForVersion extends DataSourceMigrationForVersion_4_0_RC3 { + + public PGDataSourceMigrationForVersion(AbstractDataSourceMigration callBack) { + super(callBack, PGDataSourceMigration.TYPE); + } + + @Override + protected void addMissingForeignKeys(TopiaContextImplementor tx, List<String> queries) throws TopiaException { + + removeForeignKeyIndex(tx, queries, "OBSERVE_COMMON", "gear_gearcaracteristic", "gear"); + removeForeignKeyIndex(tx, queries, "OBSERVE_COMMON", "ocean_species", "species"); + removeForeignKeyIndex(tx, queries, "OBSERVE_COMMON", "species_specieslist", "speciesList"); + + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "activity", "trip"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "baitsComposition", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "basket", "section"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "branchline", "basket"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "branchlinesComposition", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "catch", "basket"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "catch", "branchline"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "catch_predator", "catch"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "catch", "section"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "catch", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "encounter", "activity"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "floatlinesComposition", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "hooksComposition", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "mitigationtype_set", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "section", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "sensorUsed", "activity"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "sizeMeasure", "catch"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "species_tdr", "tdr"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdr", "basket"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdr", "branchline"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdrRecord", "basket"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdrRecord", "tdr"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdr", "section"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "tdr", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_LONGLINE", "weightMeasure", "catch"); + + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "activity_observedsystem", "activity"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "activity", "route"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "floatingObject", "activity"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "gearUseFeaturesMeasurement", "gearUseFeatures"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "gearUseFeatures", "trip"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "nonTargetCatch", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "nonTargetLength", "nonTargetSample"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "nonTargetSample", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "objectObservedSpecies", "floatingObject"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "objectSchoolEstimate", "floatingObject"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "route", "trip"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "schoolEstimate", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "targetCatch", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "targetLength", "targetSample"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "targetSample", "set"); + removeForeignKeyIndex(tx, queries, "OBSERVE_SEINE", "transmittingBuoy", "floatingObject"); + + addScript("add-foreign-key-indexes", queries); + + } + + private void removeForeignKeyIndex(TopiaContextImplementor tx, final List<String> queries, final String schemaName, final String tableName, final String columnName) throws TopiaException { + + tx.getHibernate().doWork(new Work() { + + @Override + public void execute(Connection connection) throws SQLException { + + // get table oid + int oid = getTableOid(connection, schemaName, tableName); + + // get attribute num + int attNum = getAttributeNum(connection, oid, columnName); + + Set<Integer> indexIds = getIndexId(connection, oid, attNum); + + for (Integer indexId : indexIds) { + + String indexName = getIndexName(connection, indexId); + queries.add("DROP INDEX " + schemaName + "." + indexName + ";"); + + } + + } + + }); + + } + + protected Integer getTableOid(Connection connection, String schemaName, String tableName) throws SQLException { + + Integer oid = null; + + String sqlOid = "SELECT '" + schemaName + "." + tableName + "'::regclass::oid;"; + PreparedStatement ps = connection.prepareStatement(sqlOid); + try { + ResultSet set = ps.executeQuery(); + if (set.next()) { + oid = set.getInt(1); + if (log.isDebugEnabled()) + log.debug("found table oid " + schemaName + "." + tableName + ": " + oid); + } + } catch (Exception e) { + throw new SQLException("Could not obtain oid for table" + tableName, e); + } finally { + ps.close(); + } + + return oid; + + } + + protected Integer getAttributeNum(Connection connection, int oid, String columnName) throws SQLException { + + Integer attNum = null; + + String attNumSql = "SELECT attnum FROM pg_attribute WHERE attrelid = ? AND attname = ?"; + PreparedStatement ps = connection.prepareStatement(attNumSql); + ps.setInt(1, oid); + ps.setString(2, columnName.toLowerCase()); + try { + ResultSet set = ps.executeQuery(); + if (set.next()) { + attNum = set.getInt(1); + if (log.isDebugEnabled()) + log.debug("found attribute " + columnName + " attNum : " + attNum); + } + } catch (Exception e) { + throw new SQLException("Could not obtain attNum for column" + columnName, e); + } finally { + ps.close(); + } + + return attNum; + + } + + protected Set<Integer> getIndexId(Connection connection, int oid, int attNum) throws SQLException { + + Set<Integer> indexIds = new HashSet<Integer>(); + + String sql = "SELECT indexrelid FROM pg_index " + + "WHERE indrelid = ? " + + "AND indkey = '" + attNum + "' " + + "AND indisunique = FALSE " + + "AND indisprimary = FALSE;"; + PreparedStatement ps = connection.prepareStatement(sql); + ps.setInt(1, oid); +// ps.setString(2, String.valueOf(attNum)); + + try { + ResultSet set = ps.executeQuery(); + + while (set.next()) { + + indexIds.add(set.getInt(1)); + + } + } catch (Exception e) { + throw new SQLException("Could not obtain index Id unique for table oid " + oid + " and column attNum " + attNum, e); + } finally { + ps.close(); + } + return indexIds; + + } + + protected String getIndexName(Connection connection, int indexId) throws SQLException { + + String indexName = null; + + String sqlIndexName = "SELECT relname FROM pg_class WHERE oid = ?;"; + PreparedStatement ps = connection.prepareStatement(sqlIndexName); + ps.setInt(1, indexId); + try { + ResultSet set = ps.executeQuery(); + if (set.next()) { + indexName = set.getString(1); + } + } catch (Exception e) { + throw new SQLException("Could not obtain index name for indexId " + indexId, e); + } finally { + ps.close(); + } + + return indexName; + + } + + + } + + +} diff --git a/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql new file mode 100644 index 0000000..cc832ae --- /dev/null +++ b/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql @@ -0,0 +1,44 @@ +CREATE INDEX idx_observe_common_gear_gearcaracteristic_gear ON OBSERVE_COMMON.gear_gearcaracteristic(gear); +CREATE INDEX idx_observe_common_ocean_species_species ON OBSERVE_COMMON.ocean_species(species); +CREATE INDEX idx_observe_common_species_specieslist_specieslist ON OBSERVE_COMMON.species_specieslist(speciesList); +CREATE INDEX idx_observe_longline_activity_trip ON OBSERVE_LONGLINE.Activity(trip); +CREATE INDEX idx_observe_longline_baitscomposition_set ON OBSERVE_LONGLINE.baitsComposition(set); +CREATE INDEX idx_observe_longline_basket_section ON OBSERVE_LONGLINE.basket(section); +CREATE INDEX idx_observe_longline_branchline_basket ON OBSERVE_LONGLINE.branchline(basket); +CREATE INDEX idx_observe_longline_branchlinescomposition_set ON OBSERVE_LONGLINE.branchlinesComposition(set); +CREATE INDEX idx_observe_longline_catch_basket ON OBSERVE_LONGLINE.Catch(basket); +CREATE INDEX idx_observe_longline_catch_branchline ON OBSERVE_LONGLINE.Catch(branchline); +CREATE INDEX idx_observe_longline_catch_predator_catch ON OBSERVE_LONGLINE.catch_predator(catch); +CREATE INDEX idx_observe_longline_catch_section ON OBSERVE_LONGLINE.Catch(section); +CREATE INDEX idx_observe_longline_catch_set ON OBSERVE_LONGLINE.Catch(set); +CREATE INDEX idx_observe_longline_encounter_activity ON OBSERVE_LONGLINE.encounter(activity); +CREATE INDEX idx_observe_longline_floatlinescomposition_set ON OBSERVE_LONGLINE.floatlinesComposition(set); +CREATE INDEX idx_observe_longline_hookscomposition_set ON OBSERVE_LONGLINE.hooksComposition(set); +CREATE INDEX idx_observe_longline_mitigationtype_set_set ON OBSERVE_LONGLINE.mitigationtype_set(set); +CREATE INDEX idx_observe_longline_section_set ON OBSERVE_LONGLINE.section(set); +CREATE INDEX idx_observe_longline_sensorused_activity ON OBSERVE_LONGLINE.sensorUsed(activity); +CREATE INDEX idx_observe_longline_sizemeasure_catch ON OBSERVE_LONGLINE.sizeMeasure(catch); +CREATE INDEX idx_observe_longline_species_tdr_tdr ON OBSERVE_LONGLINE.species_tdr(tdr); +CREATE INDEX idx_observe_longline_tdr_basket ON OBSERVE_LONGLINE.tdr(basket); +CREATE INDEX idx_observe_longline_tdr_branchline ON OBSERVE_LONGLINE.tdr(branchline); +CREATE INDEX idx_observe_longline_tdrrecord_basket ON OBSERVE_LONGLINE.tdrRecord(basket); +CREATE INDEX idx_observe_longline_tdrrecord_tdr ON OBSERVE_LONGLINE.tdrRecord(tdr); +CREATE INDEX idx_observe_longline_tdr_section ON OBSERVE_LONGLINE.tdr(section); +CREATE INDEX idx_observe_longline_tdr_set ON OBSERVE_LONGLINE.tdr(set); +CREATE INDEX idx_observe_longline_weightmeasure_catch ON OBSERVE_LONGLINE.weightMeasure(catch); +CREATE INDEX idx_observe_seine_activity_observedsystem_activity ON OBSERVE_SEINE.activity_observedsystem(activity); +CREATE INDEX idx_observe_seine_activity_route ON OBSERVE_SEINE.Activity(route); +CREATE INDEX idx_observe_seine_floatingobject_activity ON OBSERVE_SEINE.floatingObject(activity); +CREATE INDEX idx_observe_seine_gearusefeaturesmeasurement_gearusefeatures ON OBSERVE_SEINE.GearUseFeaturesMeasurement(gearUseFeatures); +CREATE INDEX idx_observe_seine_gearusefeatures_trip ON OBSERVE_SEINE.GearUseFeatures(trip); +CREATE INDEX idx_observe_seine_nontargetcatch_set ON OBSERVE_SEINE.nonTargetCatch(set); +CREATE INDEX idx_observe_seine_nontargetlength_nontargetsample ON OBSERVE_SEINE.nonTargetLength(nonTargetSample); +CREATE INDEX idx_observe_seine_nontargetsample_set ON OBSERVE_SEINE.nonTargetSample(set); +CREATE INDEX idx_observe_seine_objectobservedspecies_floatingobject ON OBSERVE_SEINE.objectObservedSpecies(floatingObject); +CREATE INDEX idx_observe_seine_objectschoolestimate_floatingobject ON OBSERVE_SEINE.objectSchoolEstimate(floatingObject); +CREATE INDEX idx_observe_seine_route_trip ON OBSERVE_SEINE.route(trip); +CREATE INDEX idx_observe_seine_schoolestimate_set ON OBSERVE_SEINE.schoolEstimate(set); +CREATE INDEX idx_observe_seine_targetcatch_set ON OBSERVE_SEINE.targetCatch(set); +CREATE INDEX idx_observe_seine_targetlength_targetsample ON OBSERVE_SEINE.targetLength(targetSample); +CREATE INDEX idx_observe_seine_targetsample_set ON OBSERVE_SEINE.targetSample(set); +CREATE INDEX idx_observe_seine_transmittingbuoy_floatingobject ON OBSERVE_SEINE.transmittingBuoy(floatingObject); \ No newline at end of file diff --git a/observe-entities/src/main/xmi/observe-common.properties b/observe-entities/src/main/xmi/observe-common.properties index 23d3817..03a55d1 100644 --- a/observe-entities/src/main/xmi/observe-common.properties +++ b/observe-entities/src/main/xmi/observe-common.properties @@ -19,10 +19,11 @@ # <http://www.gnu.org/licenses/gpl-3.0.html>. # #L% ### -model.tagvalue.version=4.0-RC2 +model.tagvalue.version=4.0-RC3 model.tagvalue.notGenerateToString=true model.tagvalue.generateOperatorForDAOHelper=true model.tagvalue.generateStandaloneEnumForDAOHelper=true +model.tagvalue.indexForeignKeys=true model.tagvalue.String=java.lang.String model.tagvalue.Float=java.lang.Float model.tagvalue.Integer=java.lang.Integer diff --git a/observe-entities/src/main/xmi/observe-longline.properties b/observe-entities/src/main/xmi/observe-longline.properties index b13b38b..8f10a54 100644 --- a/observe-entities/src/main/xmi/observe-longline.properties +++ b/observe-entities/src/main/xmi/observe-longline.properties @@ -19,7 +19,7 @@ # <http://www.gnu.org/licenses/gpl-3.0.html>. # #L% ### -model.tagvalue.version=4.0-RC2 +model.tagvalue.version=4.0-RC3 model.tagvalue.notGenerateToString=true model.tagvalue.generateOperatorForDAOHelper=true model.tagvalue.generateStandaloneEnumForDAOHelper=true diff --git a/observe-entities/src/main/xmi/observe-seine.properties b/observe-entities/src/main/xmi/observe-seine.properties index 88335fb..ced24c5 100644 --- a/observe-entities/src/main/xmi/observe-seine.properties +++ b/observe-entities/src/main/xmi/observe-seine.properties @@ -20,7 +20,7 @@ # #L% ### -model.tagvalue.version=4.0-RC2 +model.tagvalue.version=4.0-RC3 model.tagvalue.notGenerateToString=true model.tagvalue.generateOperatorForDAOHelper=true model.tagvalue.generateStandaloneEnumForDAOHelper=true -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit ba5988f095b9b1ce7a6d445353c334bec771d29d Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:07:31 2015 +0200 passage sur topia en snapshot pour la generation des index --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index d28f7a9..e5146cd 100644 --- a/pom.xml +++ b/pom.xml @@ -111,7 +111,7 @@ <eugenePluginVersion>2.14</eugenePluginVersion> - <topiaVersion>2.9.5.1</topiaVersion> + <topiaVersion>2.10-SNAPSHOT</topiaVersion> <jaxxVersion>2.23</jaxxVersion> <nuitonI18nVersion>3.3</nuitonI18nVersion> <nuitonValidatorVersion>3.0</nuitonValidatorVersion> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 1df36b03a392cd49ea0032c46031913805772008 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:13:00 2015 +0200 refs #6978 ajout icone pour l'action de consolidation des données --- observe-swing/src/main/filters/observe-ui.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/observe-swing/src/main/filters/observe-ui.properties b/observe-swing/src/main/filters/observe-ui.properties index 3f20f51..c773355 100644 --- a/observe-swing/src/main/filters/observe-ui.properties +++ b/observe-swing/src/main/filters/observe-ui.properties @@ -92,6 +92,7 @@ icon.action.data-calcule=action-data-calcule.png icon.action.numbereditor-reset=action-numbereditor-reset.png icon.action.numbereditor-calculator=action-numbereditor-calculator.png icon.action.config=action-config.png +icon.action.consolidate=action-data-calcule.png icon.action.connected=action-connected.png icon.action.connect_creating=action-connect_creating.png icon.action.connect_untested=action-connect_untested.png -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit a6da7de0fe284257ed2b7af9ab3020a88dd79921 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:25:34 2015 +0200 refs #6977 amélioration du layout --- .../observe/ui/content/impl/seine/SetSeineUI.jaxx | 72 ++++++++++++---------- 1 file changed, 39 insertions(+), 33 deletions(-) diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/seine/SetSeineUI.jaxx b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/seine/SetSeineUI.jaxx index 861fc8a..55d4b57 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/seine/SetSeineUI.jaxx +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/seine/SetSeineUI.jaxx @@ -168,40 +168,46 @@ </row> <row> - <cell anchor='west'> - <JLabel id='currentSpeedLabel'/> - </cell> - <cell anchor='east' weightx="1" fill="both"> - <NumberEditor id='currentSpeed' constructorParams='this'/> - </cell> - </row> - <row> - <cell anchor='west'> - <JLabel id='currentDirectionLabel'/> - </cell> - <cell anchor='east' weightx="1" fill="both"> - <NumberEditor id='currentDirection' constructorParams='this'/> - </cell> - </row> - <row> - <cell anchor='west'> - <JLabel id='currentMeasureDepthLabel'/> - </cell> - <cell anchor='east' weightx="1" fill="both"> - <NumberEditor id='currentMeasureDepth' constructorParams='this'/> - </cell> - </row> - <row> - <cell anchor='west'> - <JLabel id='maxGearDepthLabel'/> - </cell> - <cell anchor='east' weightx="1" fill="both"> - <NumberEditor id='maxGearDepth' constructorParams='this'/> - </cell> - </row> - <row> <cell columns='2'> - <JCheckBox id='sonarUsed'/> + <Table> + <row> + <cell anchor='west'> + <JLabel id='currentSpeedLabel'/> + </cell> + <cell anchor='east' weightx="1" fill="both"> + <NumberEditor id='currentSpeed' constructorParams='this'/> + </cell> + </row> + <row> + <cell anchor='west'> + <JLabel id='currentDirectionLabel'/> + </cell> + <cell anchor='east' weightx="1" fill="both"> + <NumberEditor id='currentDirection' constructorParams='this'/> + </cell> + </row> + <row> + <cell anchor='west'> + <JLabel id='currentMeasureDepthLabel'/> + </cell> + <cell anchor='east' weightx="1" fill="both"> + <NumberEditor id='currentMeasureDepth' constructorParams='this'/> + </cell> + </row> + <row> + <cell anchor='west'> + <JLabel id='maxGearDepthLabel'/> + </cell> + <cell anchor='east' weightx="1" fill="both"> + <NumberEditor id='maxGearDepth' constructorParams='this'/> + </cell> + </row> + <row> + <cell columns='2' anchor="west"> + <JCheckBox id='sonarUsed'/> + </cell> + </row> + </Table> </cell> </row> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit d010e19d6600c1eca3659907b4d201dc351ea996 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 19:35:58 2015 +0200 refs #6983 Ajout migration de usedInTrip pour l'engin Senne pour toutes les marées de type senne --- .../migration/versions/DataSourceMigrationForVersion_4_0_RC3.java | 5 ++++- .../main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql | 1 + .../main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java index e34b5b6..b8e7dec 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java @@ -42,8 +42,12 @@ public abstract class DataSourceMigrationForVersion_4_0_RC3 extends AbstractObse boolean showProgression) throws TopiaException { + // See https://forge.codelutin.com/issues/6964 addMissingForeignKeys(tx, queries); + // See https://forge.codelutin.com/issues/6983 + loadScript("update-senne-gear-usedInTrip"); + } public static class H2DataSourceMigrationForVersion extends DataSourceMigrationForVersion_4_0_RC3 { @@ -206,7 +210,6 @@ public abstract class DataSourceMigrationForVersion_4_0_RC3 extends AbstractObse "AND indisprimary = FALSE;"; PreparedStatement ps = connection.prepareStatement(sql); ps.setInt(1, oid); -// ps.setString(2, String.valueOf(attNum)); try { ResultSet set = ps.executeQuery(); diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql new file mode 100644 index 0000000..cbf6f71 --- /dev/null +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql @@ -0,0 +1 @@ +UPDATE observe_seine.gearusefeatures SET usedintrip = true WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql new file mode 100644 index 0000000..cbf6f71 --- /dev/null +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql @@ -0,0 +1 @@ +UPDATE observe_seine.gearusefeatures SET usedintrip = true WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit b5eb644e938e65f2f68e021fa44459e8d2b6e3f8 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 20:00:28 2015 +0200 refs #6975 mise en lazy de GearCaracteristicType car toujours utilise --- observe-entities/src/main/xmi/observe-common.properties | 1 + 1 file changed, 1 insertion(+) diff --git a/observe-entities/src/main/xmi/observe-common.properties b/observe-entities/src/main/xmi/observe-common.properties index 03a55d1..59f2703 100644 --- a/observe-entities/src/main/xmi/observe-common.properties +++ b/observe-entities/src/main/xmi/observe-common.properties @@ -63,6 +63,7 @@ fr.ird.observe.entities.referentiel.Species.attribute.maxLength.tagvalue.sqlType ############################################################################### fr.ird.observe.entities.referentiel.Gear.attribute.gearCaracteristic.tagvalue.lazy=false +fr.ird.observe.entities.referentiel.GearCaracteristic.attribute.gearCaracteristicType.tagvalue.lazy=false fr.ird.observe.entities.referentiel.Vessel.attribute.flagCountry.tagvalue.lazy=false fr.ird.observe.entities.referentiel.Vessel.attribute.vesselType.tagvalue.lazy=false fr.ird.observe.entities.referentiel.Vessel.attribute.vesselSizeCategory.tagvalue.lazy=false -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 4dfb4f08ab5bce434dbae1f9c2efef2d14200aa5 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 20:41:43 2015 +0200 refs #6976 Add default measurements when creating a new gearusefeature --- .../src/main/java/fr/ird/observe/DataService.java | 28 ++++++++++++++++ .../impl/seine/GearUseFeaturesSeineTableModel.java | 37 ++++++++++++++++++++-- .../impl/seine/GearUseFeaturesSeineUIHandler.java | 20 ++++++++++++ .../EditableTableWithCacheTableModelSupport.java | 4 +-- 4 files changed, 84 insertions(+), 5 deletions(-) diff --git a/observe-business/src/main/java/fr/ird/observe/DataService.java b/observe-business/src/main/java/fr/ird/observe/DataService.java index 41739e6..de1b1f3 100644 --- a/observe-business/src/main/java/fr/ird/observe/DataService.java +++ b/observe-business/src/main/java/fr/ird/observe/DataService.java @@ -53,6 +53,8 @@ import fr.ird.observe.entities.longline.TripLongline; import fr.ird.observe.entities.longline.TripLonglineDAO; import fr.ird.observe.entities.longline.WeightMeasure; import fr.ird.observe.entities.longline.WeightMeasureImpl; +import fr.ird.observe.entities.referentiel.Gear; +import fr.ird.observe.entities.referentiel.GearCaracteristic; import fr.ird.observe.entities.referentiel.LengthWeightParameter; import fr.ird.observe.entities.referentiel.LengthWeightParemeterHelper; import fr.ird.observe.entities.referentiel.Ocean; @@ -1592,6 +1594,32 @@ public class DataService { } } + public List<GearUseFeaturesMeasurementSeine> getDefaultGearUseFeaturesMeasurementSeine(DataSource source, String gearId) throws DataSourceException { + + String txName = "getDefaultGearUseFeaturesMeasurementSeine : " + gearId; + TopiaContext tx = beginTransaction(source, txName); + try { + + TopiaDAO<Gear> gearDao = source.getDAO(tx, Gear.class); + Gear gear = gearDao.findByTopiaId(gearId); + + Collection<GearCaracteristic> gearCaracteristic = gear.getGearCaracteristic(); + List<GearUseFeaturesMeasurementSeine> result = new ArrayList<GearUseFeaturesMeasurementSeine>(); + for (GearCaracteristic caracteristic : gearCaracteristic) { + GearUseFeaturesMeasurementSeine target = new GearUseFeaturesMeasurementSeineImpl(); + target.setGearCaracteristic(caracteristic); + result.add(target); + } + + return result; + + } catch (TopiaException e) { + throw new DataSourceException(e, txName); + } finally { + closeTransaction(source, tx, txName); + } + } + public List<GearUseFeaturesMeasurementSeine> getGearUseFeaturesMeasurementSeine(DataSource source, GearUseFeaturesSeine bean, final TopiaEntityBinder<GearUseFeaturesMeasurementSeine> binder) throws DataSourceException { String txName = "getGearUseFeaturesMeasurementSeine : " + bean.getTopiaId(); diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineTableModel.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineTableModel.java index 5f79632..07a7b24 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineTableModel.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineTableModel.java @@ -22,11 +22,14 @@ package fr.ird.observe.ui.content.table.impl.seine; * #L% */ +import fr.ird.observe.entities.referentiel.Gear; +import fr.ird.observe.entities.seine.GearUseFeaturesMeasurementSeine; import fr.ird.observe.entities.seine.GearUseFeaturesSeine; import fr.ird.observe.entities.seine.TripSeine; import fr.ird.observe.ui.content.table.ContentTableMeta; import fr.ird.observe.ui.content.table.ContentTableModel; import fr.ird.observe.ui.content.table.ObserveContentTableUI; +import org.apache.commons.collections4.CollectionUtils; import java.util.List; @@ -40,11 +43,17 @@ public class GearUseFeaturesSeineTableModel extends ContentTableModel<TripSeine, private static final long serialVersionUID = 1L; + private GearUseFeaturesSeineUIHandler gearUseFeaturesSeineUIHandler; + public GearUseFeaturesSeineTableModel(ObserveContentTableUI<TripSeine, GearUseFeaturesSeine> context, List<ContentTableMeta<GearUseFeaturesSeine>> contentTableMetas) { super(context, contentTableMetas); } + public void setGearUseFeaturesSeineUIHandler(GearUseFeaturesSeineUIHandler gearUseFeaturesSeineUIHandler) { + this.gearUseFeaturesSeineUIHandler = gearUseFeaturesSeineUIHandler; + } + @Override public void addNewEntry() { @@ -67,12 +76,34 @@ public class GearUseFeaturesSeineTableModel extends ContentTableModel<TripSeine, super.updateRowFromEditBean(); - // store sizes and weights for the selected row + GearUseFeaturesSeineUIModel model = getModel(); int editingRow = getSelectedRow(); + GearUseFeaturesSeine rowBean = getRowBean(); + GearUseFeaturesMeasurementSeinesTableModel measurementsTableModel = model.getMeasurementsTableModel(); - GearUseFeaturesSeineUIModel model = getModel(); - model.getMeasurementsTableModel().storeInCacheForRow(editingRow); + if (rowBean.getTopiaId() == null && CollectionUtils.isEmpty(measurementsTableModel.getCacheForRow(editingRow))) { + + // new gear usage, add default measurements + + Gear gear = rowBean.getGear(); + List<GearUseFeaturesMeasurementSeine> measurements = + gearUseFeaturesSeineUIHandler.getDefaultGearUseFeaturesMeasurementSeine(gear.getTopiaId()); + if (log.isInfoEnabled()) { + log.info("Create mode, use default measurements: " + measurements.size()); + } + measurementsTableModel.removeCacheForRow(editingRow); + measurementsTableModel.initCacheForRow(editingRow, measurements); + + measurementsTableModel.setData(measurements); + measurementsTableModel.setModified(false); + + } else { + + // store current measurements for the selected row + measurementsTableModel.storeInCacheForRow(editingRow); + + } } diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineUIHandler.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineUIHandler.java index baa9c9b..e97d570 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineUIHandler.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/table/impl/seine/GearUseFeaturesSeineUIHandler.java @@ -277,6 +277,8 @@ public class GearUseFeaturesSeineUIHandler extends ContentTableUIHandler<TripSei setTableModelEditable(getModel().isEditable()); + getTableModel().setGearUseFeaturesSeineUIHandler(this); + } @Override @@ -330,7 +332,12 @@ public class GearUseFeaturesSeineUIHandler extends ContentTableUIHandler<TripSei super.startEditUI(binding); + } + + @Override + protected TripSeine onCreate(TopiaContext tx, Object parentBean, TripSeine editBean) throws TopiaException { + return super.onCreate(tx, parentBean, editBean); } @Override @@ -470,4 +477,17 @@ public class GearUseFeaturesSeineUIHandler extends ContentTableUIHandler<TripSei } + public List<GearUseFeaturesMeasurementSeine> getDefaultGearUseFeaturesMeasurementSeine(String gearId) { + + try { + List<GearUseFeaturesMeasurementSeine> measurements = getDataService().getDefaultGearUseFeaturesMeasurementSeine(getDataSource(), gearId); + if (log.isInfoEnabled()) { + log.info("Create mode, use default measurements: " + measurements.size()); + } + return measurements; + } catch (DataSourceException e) { + throw new ObserveTechnicalException("Could not create default measurements", e); + } + + } } \ No newline at end of file diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/util/table/EditableTableWithCacheTableModelSupport.java b/observe-swing/src/main/java/fr/ird/observe/ui/util/table/EditableTableWithCacheTableModelSupport.java index 7a8a23a..54f2cc1 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/util/table/EditableTableWithCacheTableModelSupport.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/util/table/EditableTableWithCacheTableModelSupport.java @@ -74,7 +74,7 @@ public abstract class EditableTableWithCacheTableModelSupport<E extends TopiaEnt public void initCacheForRow(int editingRow, List<E> data) { EditableList<E> editableList = cacheByRow.get(editingRow); - Preconditions.checkState(editableList == null); + Preconditions.checkState(editableList == null, "Cant have a list for row: " + editingRow); editableList = new EditableList<E>(); // Get a copy of the list (to avoid to edit the content of the list) @@ -89,7 +89,7 @@ public abstract class EditableTableWithCacheTableModelSupport<E extends TopiaEnt List<E> measures = getData(); EditableList<E> editableList = cacheByRow.get(editingRow); - Preconditions.checkState(editableList != null); + Preconditions.checkState(editableList != null, "No list found for row: " + editingRow); editableList.setData(measures); } -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 2836c5d5689d03a0a0c9b5320d93dafe09812425 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 23:03:47 2015 +0200 refs #6986 revue de la gestion du quadrant sur l'écran d'opération de peche palangre --- .../src/main/java/fr/ird/observe/entities/Set.java | 3 ++ .../observe/entities/longline/SetLonglineImpl.java | 26 +++++++------- .../ird/observe/entities/seine/SetSeineImpl.java | 8 +++-- .../ird/observe/ui/content/ContentUIHandler.java | 28 +++++++++++++++ .../ui/content/impl/longline/SetLonglineUI.css | 8 ++--- .../impl/longline/SetLonglineUIHandler.java | 42 ++++++++++++++++++++++ .../content/impl/longline/SetLonglineUIModel.java | 8 ++--- 7 files changed, 100 insertions(+), 23 deletions(-) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/Set.java b/observe-entities/src/main/java/fr/ird/observe/entities/Set.java index 001fbbe..d43dd22 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/Set.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/Set.java @@ -31,4 +31,7 @@ import org.nuiton.topia.persistence.TopiaEntity; * @since 3.7 */ public interface Set extends TopiaEntity { + + void initCoordinates(); + } diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/longline/SetLonglineImpl.java b/observe-entities/src/main/java/fr/ird/observe/entities/longline/SetLonglineImpl.java index 8ad0f0e..f67b2ee 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/longline/SetLonglineImpl.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/longline/SetLonglineImpl.java @@ -22,6 +22,7 @@ package fr.ird.observe.entities.longline; * #L% */ +import fr.ird.type.CoordinateHelper; import org.nuiton.util.DateUtil; import java.util.Date; @@ -30,47 +31,46 @@ public class SetLonglineImpl extends SetLonglineAbstract { private static final long serialVersionUID = 1L; - protected Integer settingStartQuadrant; - - protected Integer settingEndQuadrant; + @Override + public void initCoordinates() { - protected Integer haulingStartQuadrant; + setSettingStartQuadrant(getSettingStartQuadrant()); + setSettingEndQuadrant(getSettingEndQuadrant()); - protected Integer haulingEndQuadrant; + setHaulingStartQuadrant(getHaulingStartQuadrant()); + setHaulingEndQuadrant(getHaulingEndQuadrant()); + + } public Integer getSettingStartQuadrant() { - return settingStartQuadrant; + return CoordinateHelper.getQuadrant(settingStartLongitude, settingStartLatitude); } public void setSettingStartQuadrant(Integer settingStartQuadrant) { - this.settingStartQuadrant = settingStartQuadrant; fireOnPostWrite(PROPERTY_SETTING_START_QUADRANT, null, settingStartQuadrant); } public Integer getSettingEndQuadrant() { - return settingEndQuadrant; + return CoordinateHelper.getQuadrant(settingEndLongitude, settingEndLatitude); } public void setSettingEndQuadrant(Integer settingEndQuadrant) { - this.settingEndQuadrant = settingEndQuadrant; fireOnPostWrite(PROPERTY_SETTING_END_QUADRANT, null, settingEndQuadrant); } public Integer getHaulingStartQuadrant() { - return haulingStartQuadrant; + return CoordinateHelper.getQuadrant(haulingStartLongitude, haulingStartLatitude); } public void setHaulingStartQuadrant(Integer haulingStartQuadrant) { - this.haulingStartQuadrant = haulingStartQuadrant; fireOnPostWrite(PROPERTY_HAULING_START_QUADRANT, null, haulingStartQuadrant); } public Integer getHaulingEndQuadrant() { - return haulingEndQuadrant; + return CoordinateHelper.getQuadrant(haulingEndLongitude, haulingEndLatitude); } public void setHaulingEndQuadrant(Integer haulingEndQuadrant) { - this.haulingEndQuadrant = haulingEndQuadrant; fireOnPostWrite(PROPERTY_HAULING_END_QUADRANT, null, haulingEndQuadrant); } diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/seine/SetSeineImpl.java b/observe-entities/src/main/java/fr/ird/observe/entities/seine/SetSeineImpl.java index 4df818e..275787e 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/seine/SetSeineImpl.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/seine/SetSeineImpl.java @@ -21,8 +21,8 @@ */ package fr.ird.observe.entities.seine; -import fr.ird.observe.util.Numbers; import fr.ird.observe.entities.constants.seine.SchoolType; +import fr.ird.observe.util.Numbers; import org.nuiton.util.DateUtil; import java.util.Date; @@ -40,6 +40,10 @@ public class SetSeineImpl extends SetSeineAbstract { } @Override + public void initCoordinates() { + } + + @Override public boolean hasTargetCatch() { if (isTargetCatchEmpty()) { return false; @@ -160,7 +164,7 @@ public class SetSeineImpl extends SetSeineAbstract { @Override public void setEndSetTime(Date endSetTime) { if (endSetTimeStamp != null) { - Date dateAndTime = DateUtil.getDateAndTime(endSetTimeStamp, endSetTime, false, false); + Date dateAndTime = DateUtil.getDateAndTime(endSetTimeStamp, endSetTime, false, false); setEndSetTimeStamp(dateAndTime); } } diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/ContentUIHandler.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/ContentUIHandler.java index 7a5c374..05f636a 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/ContentUIHandler.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/ContentUIHandler.java @@ -42,6 +42,7 @@ import fr.ird.observe.ui.tree.ObserveTreeHelper; import fr.ird.observe.util.DBHelper; import jaxx.runtime.JAXXContext; import jaxx.runtime.swing.ErrorDialogUI; +import jaxx.runtime.swing.JAXXButtonGroup; import jaxx.runtime.swing.editor.bean.BeanListHeader; import jaxx.runtime.validator.swing.SwingValidatorMessageTableModel; import jaxx.runtime.validator.swing.SwingValidatorUtil; @@ -51,6 +52,7 @@ import org.apache.commons.logging.LogFactory; import org.nuiton.decorator.Decorator; import org.nuiton.decorator.DecoratorUtil; import org.nuiton.decorator.JXPathDecorator; +import org.nuiton.jaxx.widgets.gis.absolute.CoordinatesEditor; import org.nuiton.topia.TopiaContext; import org.nuiton.topia.TopiaException; import org.nuiton.topia.persistence.TopiaEntity; @@ -827,4 +829,30 @@ public abstract class ContentUIHandler<E extends TopiaEntity> { } return title; } + + //FIXME Do it in jaxx + protected void resetQuadrant(CoordinatesEditor editor) { + + editor.setQuadrant(null); + JAXXButtonGroup quadrantBG = editor.getQuadrantBG(); + + quadrantBG.setSelectedValue(null); + quadrantBG.setSelectedButton(null); + + quadrantBG.remove(editor.getQuadrant1()); + quadrantBG.remove(editor.getQuadrant2()); + quadrantBG.remove(editor.getQuadrant3()); + quadrantBG.remove(editor.getQuadrant4()); + + editor.getQuadrant1().setSelected(false); + editor.getQuadrant2().setSelected(false); + editor.getQuadrant3().setSelected(false); + editor.getQuadrant4().setSelected(false); + + quadrantBG.add(editor.getQuadrant1()); + quadrantBG.add(editor.getQuadrant2()); + quadrantBG.add(editor.getQuadrant3()); + quadrantBG.add(editor.getQuadrant4()); + + } } diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUI.css b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUI.css index 9610408..79ffc52 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUI.css +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUI.css @@ -81,7 +81,7 @@ #settingStartCoordinates { propertyLatitude:{SetLongline.PROPERTY_SETTING_START_LATITUDE}; propertyLongitude:{SetLongline.PROPERTY_SETTING_START_LONGITUDE}; - propertyQuadrant:{SetLongline.PROPERTY_SETTING_START_QUADRANT}; + /*propertyQuadrant:{SetLongline.PROPERTY_SETTING_START_QUADRANT};*/ latitude:{bean.getSettingStartLatitude()}; longitude:{bean.getSettingStartLongitude()}; quadrant:{bean.getSettingStartQuadrant()}; @@ -104,7 +104,7 @@ #settingEndCoordinates { propertyLatitude:{SetLongline.PROPERTY_SETTING_END_LATITUDE}; propertyLongitude:{SetLongline.PROPERTY_SETTING_END_LONGITUDE}; - propertyQuadrant:{SetLongline.PROPERTY_SETTING_END_QUADRANT}; + /*propertyQuadrant:{SetLongline.PROPERTY_SETTING_END_QUADRANT};*/ latitude:{bean.getSettingEndLatitude()}; longitude:{bean.getSettingEndLongitude()}; quadrant:{bean.getSettingEndQuadrant()}; @@ -375,7 +375,7 @@ #haulingStartCoordinates { propertyLatitude:{SetLongline.PROPERTY_HAULING_START_LATITUDE}; propertyLongitude:{SetLongline.PROPERTY_HAULING_START_LONGITUDE}; - propertyQuadrant:{SetLongline.PROPERTY_HAULING_START_QUADRANT}; + /*propertyQuadrant:{SetLongline.PROPERTY_HAULING_START_QUADRANT};*/ latitude:{bean.getHaulingStartLatitude()}; longitude:{bean.getHaulingStartLongitude()}; quadrant:{bean.getHaulingStartQuadrant()}; @@ -394,7 +394,7 @@ #haulingEndCoordinates { propertyLatitude:{SetLongline.PROPERTY_HAULING_END_LATITUDE}; propertyLongitude:{SetLongline.PROPERTY_HAULING_END_LONGITUDE}; - propertyQuadrant:{SetLongline.PROPERTY_HAULING_END_QUADRANT}; + /*propertyQuadrant:{SetLongline.PROPERTY_HAULING_END_QUADRANT};*/ latitude:{bean.getHaulingEndLatitude()}; longitude:{bean.getHaulingEndLongitude()}; quadrant:{bean.getHaulingEndQuadrant()}; diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java index 1baa2bb..54f8c65 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIHandler.java @@ -164,9 +164,17 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLongline> { } + + @Override public void openUI() throws Exception { + // Reset quandrant + resetQuadrant(getUi().getSettingStartCoordinates()); + resetQuadrant(getUi().getSettingEndCoordinates()); + resetQuadrant(getUi().getHaulingStartCoordinates()); + resetQuadrant(getUi().getHaulingEndCoordinates()); + if (log.isInfoEnabled()) { log.info("OpenUI: " + getModel()); } @@ -192,6 +200,8 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLongline> { // creation mode dataService.preCreate(source, activityId, bean, binder, getPreCreateExecutor()); + getUi().getFishingOperationTabPane().setSelectedIndex(0); + } else { // update mode @@ -199,6 +209,9 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLongline> { } + // passage en coordonnes absolues + utilisation du quadrant + bean.initCoordinates(); + // utilisation du mode requis setContentMode(mode); @@ -217,6 +230,31 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLongline> { } @Override + protected void onLoad(TopiaContext tx, SetLongline bean) throws TopiaException { + + Float settingStartLatitude = bean.getSettingStartLatitude(); + Float settingStartLongitude = bean.getSettingStartLongitude(); + Float settingEndLatitude = bean.getSettingEndLatitude(); + Float settingEndLongitude = bean.getSettingEndLongitude(); + Float haulingStartLatitude = bean.getHaulingStartLatitude(); + Float haulingStartLongitude = bean.getHaulingStartLongitude(); + Float haulingEndLatitude = bean.getHaulingEndLatitude(); + Float haulingEndLongitude = bean.getHaulingEndLongitude(); + + super.onLoad(tx, bean); + + getBean().setSettingStartLatitude(settingStartLatitude); + getBean().setSettingStartLongitude(settingStartLongitude); + getBean().setSettingEndLatitude(settingEndLatitude); + getBean().setSettingEndLongitude(settingEndLongitude); + getBean().setHaulingStartLatitude(haulingStartLatitude); + getBean().setHaulingStartLongitude(haulingStartLongitude); + getBean().setHaulingEndLatitude(haulingEndLatitude); + getBean().setHaulingEndLongitude(haulingEndLongitude); + + } + + @Override protected void closeSafeUI() { if (log.isInfoEnabled()) { @@ -247,6 +285,10 @@ public class SetLonglineUIHandler extends ContentUIHandler<SetLongline> { // on reporte la position de l'activité pour la position de début de filage Float latitude = parentBean.getLatitude(); Float longitude = parentBean.getLongitude(); + + // On enregistre deux fois les coordonnées car la première fois on perd le signe à cause de l'éditeur + bean.setSettingStartLatitude(latitude); + bean.setSettingStartLongitude(longitude); bean.setSettingStartLatitude(latitude); bean.setSettingStartLongitude(longitude); diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIModel.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIModel.java index 03f7ecc..af4588b 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIModel.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/impl/longline/SetLonglineUIModel.java @@ -116,14 +116,14 @@ public class SetLonglineUIModel extends ContentUIModel<SetLongline> { SetLongline.PROPERTY_NUMBER, SetLongline.PROPERTY_SETTING_START_TIME_STAMP, + SetLongline.PROPERTY_SETTING_START_QUADRANT, SetLongline.PROPERTY_SETTING_START_LATITUDE, SetLongline.PROPERTY_SETTING_START_LONGITUDE, - SetLongline.PROPERTY_SETTING_START_QUADRANT, SetLongline.PROPERTY_SETTING_END_TIME_STAMP, + SetLongline.PROPERTY_SETTING_END_QUADRANT, SetLongline.PROPERTY_SETTING_END_LATITUDE, SetLongline.PROPERTY_SETTING_END_LONGITUDE, - SetLongline.PROPERTY_SETTING_END_QUADRANT, // setting caracteristics tab SetLongline.PROPERTY_SETTING_SHAPE, @@ -150,15 +150,15 @@ public class SetLonglineUIModel extends ContentUIModel<SetLongline> { // hauling tab SetLongline.PROPERTY_HAULING_DIRECTION_SAME_AS_SETTING, + SetLongline.PROPERTY_HAULING_START_QUADRANT, SetLongline.PROPERTY_HAULING_START_LATITUDE, SetLongline.PROPERTY_HAULING_START_LONGITUDE, SetLongline.PROPERTY_HAULING_START_TIME_STAMP, - SetLongline.PROPERTY_HAULING_START_QUADRANT, + SetLongline.PROPERTY_HAULING_END_QUADRANT, SetLongline.PROPERTY_HAULING_END_LATITUDE, SetLongline.PROPERTY_HAULING_END_LONGITUDE, SetLongline.PROPERTY_HAULING_END_TIME_STAMP, - SetLongline.PROPERTY_HAULING_END_QUADRANT, SetLongline.PROPERTY_HAULING_BREAKS); -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 6dc7d9af6cb3b4da3de6730d7bdb725a5ad022f8 Author: Tony CHEMIT <chemit@codelutin.com> Date: Thu Apr 16 23:08:02 2015 +0200 refs #6988 bien réinitilisé le quadrant sur les écrans d'activité --- .../open/impl/longline/ActivityLonglineUIHandler.java | 16 ++++++++++++++++ .../content/open/impl/seine/ActivitySeineUIHandler.java | 15 +++++++++++++++ 2 files changed, 31 insertions(+) diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/longline/ActivityLonglineUIHandler.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/longline/ActivityLonglineUIHandler.java index 5e575d1..b5cef09 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/longline/ActivityLonglineUIHandler.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/longline/ActivityLonglineUIHandler.java @@ -65,6 +65,7 @@ public class ActivityLonglineUIHandler extends ContentOpenableUIHandler<Activity n("observe.common.longitude"); } + public ActivityLonglineUIHandler(ActivityLonglineUI ui) { super(ui, DataContextType.TripLongline, @@ -124,6 +125,8 @@ public class ActivityLonglineUIHandler extends ContentOpenableUIHandler<Activity public void openUI() throws Exception { super.openUI(); + resetQuadrant(getUi().getCoordinatesEditor()); + String tripId = getSelectedParentId(); String activityId = getSelectedId(); @@ -172,6 +175,19 @@ public class ActivityLonglineUIHandler extends ContentOpenableUIHandler<Activity } @Override + protected void onLoad(TopiaContext tx, ActivityLongline bean) throws TopiaException { + + Float latitude = bean.getLatitude(); + Float longitude = bean.getLongitude(); + + super.onLoad(tx, bean); + + getBean().setLatitude(latitude); + getBean().setLongitude(longitude); + + } + + @Override protected ActivityLongline onPreCreate(TopiaContext tx, Object parent, ActivityLongline bean) throws TopiaException { TripLongline parentBean = (TripLongline) parent; diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/seine/ActivitySeineUIHandler.java b/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/seine/ActivitySeineUIHandler.java index 8497a03..19608ea 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/seine/ActivitySeineUIHandler.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/content/open/impl/seine/ActivitySeineUIHandler.java @@ -159,6 +159,8 @@ public class ActivitySeineUIHandler extends ContentOpenableUIHandler<ActivitySei public void openUI() throws Exception { super.openUI(); + resetQuadrant(getUi().getCoordinatesEditor()); + String routeId = getSelectedParentId(); String activityId = getSelectedId(); @@ -212,6 +214,19 @@ public class ActivitySeineUIHandler extends ContentOpenableUIHandler<ActivitySei } @Override + protected void onLoad(TopiaContext tx, ActivitySeine bean) throws TopiaException { + + Float latitude = bean.getLatitude(); + Float longitude = bean.getLongitude(); + + super.onLoad(tx, bean); + + getBean().setLatitude(latitude); + getBean().setLongitude(longitude); + + } + + @Override protected ActivitySeine onPreCreate(TopiaContext tx, Object parent, ActivitySeine bean) throws TopiaException { -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 4645d56b55b8a293eff8c611ebe0218dbbb5fbff Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:22:24 2015 +0200 refs #6475 ajout des traductions françaises à partir du fichier fourni dans le ticket --- .../resources/i18n/observe-swing_fr_FR.properties | 136 ++++++++++----------- .../i18n/observe-validation_fr_FR.properties | 12 +- 2 files changed, 74 insertions(+), 74 deletions(-) diff --git a/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties b/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties index 3fb9d33..80767a6 100644 --- a/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties +++ b/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties @@ -204,11 +204,11 @@ observe.action.harbour.delete.tip=Supprimer le port sélectionné observe.action.harbour.detail.tip=Voir les détails du port sélectionné observe.action.harbour.modify.tip=Modifier le port sélectionné observe.action.harbour.save.tip=Sauver les modifications du port -observe.action.healthness.create.tip=Créer un nouveau état de santé -observe.action.healthness.delete.tip=Supprimer l'état de santé sélectionné -observe.action.healthness.detail.tip=Voir les détails de l'état de santé sélectionné -observe.action.healthness.modify.tip=Modifier l'état de santé sélectionné -observe.action.healthness.save.tip=Sauver les modifications de l'état de santé +observe.action.healthness.create.tip=Créer un nouveau statut de capture +observe.action.healthness.delete.tip=Supprimer le statut de santé sélectionné +observe.action.healthness.detail.tip=Voir les détails du statut de santé sélectionné +observe.action.healthness.modify.tip=Modifier le statut de santé sélectionné +observe.action.healthness.save.tip=Sauver les modifications du statut de santé observe.action.hookPosition.create.tip=Créer une nouvelle position d'hameçon observe.action.hookPosition.delete.tip=Supprimer la position d'hameçon sélectionnée observe.action.hookPosition.detail.tip=Voir les détails de la position d'hameçon sélectionnée @@ -563,32 +563,32 @@ observe.baitsComposition.action.create.tip=Inserer cet appât observe.baitsComposition.baitSettingStatus=État au filage observe.baitsComposition.baitType=Type d'appât observe.baitsComposition.individualSize=Taille (cm) -observe.baitsComposition.individualWeight=Poids (g) -observe.baitsComposition.proportion=Proportion -observe.baitsComposition.proportionSum=Somme des proportions d'appâts -observe.baitsComposition.table.baitSettingStatus=État -observe.baitsComposition.table.baitSettingStatus.tip=État au filage +observe.baitsComposition.individualWeight=Poids (kg) +observe.baitsComposition.proportion=Proportion (%) +observe.baitsComposition.proportionSum=Somme des proportions d'appâts (%) +observe.baitsComposition.table.baitSettingStatus=Statut +observe.baitsComposition.table.baitSettingStatus.tip=Statut au filage observe.baitsComposition.table.baitType=Type d'appât observe.baitsComposition.table.baitType.tip=Type d'appât observe.baitsComposition.table.individualSize=Taille (cm) observe.baitsComposition.table.individualSize.tip=Taille (cm) -observe.baitsComposition.table.individualWeight=Poids (g) -observe.baitsComposition.table.individualWeight.tip=Poids (g) -observe.baitsComposition.table.proportion=Proportion -observe.baitsComposition.table.proportion.tip=Proportion +observe.baitsComposition.table.individualWeight=Poids (kg) +observe.baitsComposition.table.individualWeight.tip=Poids (kg) +observe.baitsComposition.table.proportion=Proportion (%) +observe.baitsComposition.table.proportion.tip=Proportion (%) observe.baitsComposition.title=Composition des appâts observe.basket.cant.delete.message=Le panier ne peut pas être supprimé car il est utilisé dans des données. observe.basket.cant.delete.title=Impossible de supprimer le panier observe.basket.invalid.nextFloatline1Length=La longueur d'orin 2 (%s) n'est pas égale à la longueur d'orin 1 du panier suivant (%s) observe.branchLine.cant.delete.message=L'avançon ne peut pas être supprimé car il est utilisé dans des données. observe.branchLine.cant.delete.title=Impossible de supprimer l'avançon -observe.branchline.baitHaulingStatus=État appât au virage -observe.branchline.baitSettingStatus=État appât au filage +observe.branchline.baitHaulingStatus=Statut appât au virage +observe.branchline.baitSettingStatus=Statut appât au filage observe.branchline.baitType=Type d'appât observe.branchline.comment=Commentaire observe.branchline.depthRecorder=Enregistreur de profondeur observe.branchline.hookLost=Hameçon perdu -observe.branchline.hookOffset=Hameçon Offset +observe.branchline.hookOffset=Offset hameçon (°) observe.branchline.hookSize=Taille d'hameçon observe.branchline.hookType=Type d'hameçon observe.branchline.message.modified=L'avançon en cours d'édition a été modifié et est valide. @@ -597,27 +597,27 @@ observe.branchline.snapWeight=Poids snap (kg) observe.branchline.swivelWeight=Poids émerillon (kg) observe.branchline.tab.general=Généralités observe.branchline.tab.hookAndBait=Hameçon et appât -observe.branchline.timeSinceContact=Temps depuis montée à bord -observe.branchline.timer=Timer +observe.branchline.timeSinceContact=Temps depuis déclenchement +observe.branchline.timer=Horloge observe.branchline.timerTimeOnBoard=Horodatage de montée à bord observe.branchline.title=Détail de l'avançon observe.branchline.topType=Type partie supérieure -observe.branchline.traceCutOff=Tracé coupé +observe.branchline.traceCutOff=Bas de ligne coupé observe.branchline.tracelineType=Type bas de ligne -observe.branchline.weightedSnap=Snap utilisé -observe.branchline.weightedSwivel=Émerillon utilisé +observe.branchline.weightedSnap=Snap plombé +observe.branchline.weightedSwivel=Émerillon plombé observe.branchlinesComposition.action.create=Inserer cet avançon observe.branchlinesComposition.action.create.tip=Inserer cet avançon -observe.branchlinesComposition.length=Taille -observe.branchlinesComposition.proportion=Proportion -observe.branchlinesComposition.proportionSum=Somme des proportions d'avançons -observe.branchlinesComposition.table.length=Longueur -observe.branchlinesComposition.table.length.tip=Longueur -observe.branchlinesComposition.table.proportion=Proportion -observe.branchlinesComposition.table.proportion.tip=Proportion -observe.branchlinesComposition.table.topType=Type haute +observe.branchlinesComposition.length=Longueur (m) +observe.branchlinesComposition.proportion=Proportion (%) +observe.branchlinesComposition.proportionSum=Somme des proportions d'avançons (%) +observe.branchlinesComposition.table.length=Longueur (m) +observe.branchlinesComposition.table.length.tip=Longueur (m) +observe.branchlinesComposition.table.proportion=Proportion (%) +observe.branchlinesComposition.table.proportion.tip=Proportion (%) +observe.branchlinesComposition.table.topType=Type partie supérieure observe.branchlinesComposition.table.topType.tip=Type partie supérieure -observe.branchlinesComposition.table.tracelineType=Type basse +observe.branchlinesComposition.table.tracelineType=Type basse de ligne observe.branchlinesComposition.table.tracelineType.tip=Type bas de ligne observe.branchlinesComposition.title=Composition des avançons observe.branchlinesComposition.topType=Type partie supérieure @@ -661,8 +661,8 @@ observe.catchLongline.tab.branchline=Avançon observe.catchLongline.tab.caracteristics=Caractéristiques observe.catchLongline.tab.depredated=Déprédation observe.catchLongline.tab.foodAndSexual=Alimentation et maturité sexuelle -observe.catchLongline.tab.sizeMeasures=Tailles -observe.catchLongline.tab.weightMeasures=Poids +observe.catchLongline.tab.sizeMeasures=Tailles (cm) +observe.catchLongline.tab.weightMeasures=Poids (kg) observe.catchLongline.title=Captures observe.catchLongline.totalWeight=Poids total (kg) observe.catchlongline.table.acquisitionMode=Mode @@ -754,7 +754,7 @@ observe.common.detectionMode=Mode détection observe.common.directory=Répertoire observe.common.endDate=Fin de validité observe.common.endLogValue=Loch du soir (milles) -observe.common.equation=Relation taille poids +observe.common.equation=Relation Taille-Poids observe.common.ersId=Id ERS observe.common.file=Fichier observe.common.firstName=Prénom @@ -880,7 +880,7 @@ observe.common.storage.not.valid=Source de données non configurée observe.common.supportVesselName=Nom supply observe.common.surroundingActivity=Activité environnante observe.common.taille=Taille (cm) -observe.common.taillePoids.caracteristics=Caractéristiques Taille Poids +observe.common.taillePoids.caracteristics=Caractéristiques Taille-Poids observe.common.targetCatch=Capture cible observe.common.targetDiscarded=Rejet de thon observe.common.targetDiscardsObservation=Rejets thon @@ -997,7 +997,7 @@ observe.config.speciesList.seine.schoolEstimate=Espèces pour les estimations observe.config.speciesList.seine.targetCatch=Espèces pour les captures cible observe.config.ui.autoPopupNumberEditor=Pour afficher automatiquement l'éditeur numérique lors de l'édition d'un count observe.config.ui.changeSynchroSrc=Pour autoriser la sélection de la base source dans les opérations sur base -observe.config.ui.fullscreen=Pour afficher l'aplication en mode pleine écran +observe.config.ui.fullscreen=Pour afficher l'application en mode pleine écran observe.config.ui.loadLocalStorage=Charger la base locale au démarrage de l'application observe.config.ui.locale=Langue utilisée par l'application (fr_FR, en_GB ou es_ES) observe.config.ui.showNumberEditorButton=Pour afficher le bouton qui permet d'utiliser l'éditeur numérique à gauche de chaque champs numérique @@ -1041,14 +1041,14 @@ observe.floatlinesComposition.action.create=Insérer cet orin observe.floatlinesComposition.action.create.tip=Insérer cet orin observe.floatlinesComposition.length=Longueur observe.floatlinesComposition.lineType=Type -observe.floatlinesComposition.proportion=Proportion -observe.floatlinesComposition.proportionSum=Somme des proportions d'orins -observe.floatlinesComposition.table.length=Longueur -observe.floatlinesComposition.table.length.tip=Longueur +observe.floatlinesComposition.proportion=Proportion (%) +observe.floatlinesComposition.proportionSum=Somme des proportions d'orins (%) +observe.floatlinesComposition.table.length=Longueur (m) +observe.floatlinesComposition.table.length.tip=Longueur (m) observe.floatlinesComposition.table.lineType=Type observe.floatlinesComposition.table.lineType.tip=Type -observe.floatlinesComposition.table.proportion=Proportion -observe.floatlinesComposition.table.proportion.tip=Proportion +observe.floatlinesComposition.table.proportion=Proportion (%) +observe.floatlinesComposition.table.proportion.tip=Proportion (%) observe.floatlinesComposition.title=Composition des orins observe.gear.availableGearCaracteristic=Caractéristiques disponibles observe.gear.gearCaracteristic=Caractéristiques @@ -1084,16 +1084,16 @@ observe.hooksComposition.action.create.tip=Inserer cet hameçon observe.hooksComposition.hookOffset=Offset observe.hooksComposition.hookSize=Taille observe.hooksComposition.hookType=Type -observe.hooksComposition.proportion=Proportion -observe.hooksComposition.proportionSum=Somme des proportions d'hameçons -observe.hooksComposition.table.hookOffset=Offset -observe.hooksComposition.table.hookOffset.tip=Offset +observe.hooksComposition.proportion=Proportion (%) +observe.hooksComposition.proportionSum=Somme des proportions d'hameçons (%) +observe.hooksComposition.table.hookOffset=Offset (°) +observe.hooksComposition.table.hookOffset.tip=Offset (°) observe.hooksComposition.table.hookSize=Taille observe.hooksComposition.table.hookSize.tip=Taille observe.hooksComposition.table.hookType=Type observe.hooksComposition.table.hookType.tip=Type -observe.hooksComposition.table.proportion=Proportion -observe.hooksComposition.table.proportion.tip=Proportion +observe.hooksComposition.table.proportion=Proportion (%) +observe.hooksComposition.table.proportion.tip=Proportion (%) observe.hooksComposition.title=Composition des hameçons observe.info.selected.validators=Il faut au moins un validateur sélectionné pour continuer. observe.info.validation.credentials=Pour valider le référentiel (resp. les données), vous devez posséder les droits en lecture-écriture correspondants. @@ -1101,15 +1101,15 @@ observe.init.local.db.detected=%1$s détectée. observe.init.no.initial.dump.detected=Base embarquée %1$s non détectée. observe.init.no.local.db.detected=Base locale %1$s non détectée. observe.init.storage.done=Initialisation du service de persistance terminé. -observe.label.coefficients.info=Les coefficients des relations sont de la formae nom\=valeur et sont séparé par des \: (exemple \: a\=1\:b\=2\:c\=3) +observe.label.coefficients.info=Les coefficients des relations sont de la forme nom=valeur et sont séparé par des : (exemple : a=1:b=2:c=3) observe.label.lengthWeightFormula.info=La relation poids permet de calculer le poids à partir de la taille, elle doit contenir la variable L observe.label.usage.data.title=Donnée '%1$s' (%2$d occurrences) observe.label.usage.referentiel.title=Référentiel '%1$s' (%2$d occurrences) observe.label.weightLengthFormula.info=La relation taille permet de calculer la taille à partir du poids, elle doit contenir la variable P observe.lengthWeightParameter.tab.general=Caractéristiques générales observe.lengthWeightParameter.tab.other=Autres caractéristiques -observe.list.baitHaulingStatus=Liste des status de l'appât au virage enregistrés -observe.list.baitSettingStatus=Liste des status de l'appât au filage enregistrés +observe.list.baitHaulingStatus=Liste des statuts de l'appât au virage enregistrés +observe.list.baitSettingStatus=Liste des statuts de l'appât au filage enregistrés observe.list.baitType=Liste des types d'appât enregistrés observe.list.catchFateLongline=Liste des devenirs capture enregistrés observe.list.country=Liste des pays enregistrés @@ -1127,8 +1127,8 @@ observe.list.hookType=Liste des types d'hameçon enregistrées observe.list.itemHorizontalPosition=Liste des localisations de l'élément sur la ligne mère enregistrées observe.list.itemVerticalPosition=Liste des localisations de l'élément sur l'avançon enregistrées observe.list.lengthWeightParameter=Liste des paramétrages taille-poids thons -observe.list.lightsticksColor=Liste des couleurs de baton lumineux enregistrées -observe.list.lightsticksType=Liste des types de baton lumineux enregistrés +observe.list.lightsticksColor=Liste des couleurs de cyalumes enregistrées +observe.list.lightsticksType=Liste des types de cyalumes enregistrés observe.list.lineType=Liste des types de ligne enregistrés observe.list.maturityStatus=Liste des maturités enregistrées observe.list.mitigationType=Listes des types de mesure d'atténuation enregistrés @@ -1157,7 +1157,7 @@ observe.list.speciesList=Liste des listes de favoris d'espèces enregistrées observe.list.speciesStatus=Liste des statuts d'espèce enregistrés observe.list.stomacFullness=Liste des niveaux de remplissage de l'estomac enregistrés observe.list.surroundingActivity=Liste des activités environnantes -observe.list.transmittingBuoyType=Liste des types de balise entregistrées +observe.list.transmittingBuoyType=Liste des types de balise enregistrées observe.list.tripType=Liste des types de marée enregistrés observe.list.vessel=Liste des bateaux enregistrés observe.list.vesselActivityLongline=Liste des activités bateau enregistrées @@ -1166,7 +1166,7 @@ observe.list.vesselSizeCategory=Liste des catégories de bateaux enregistrées observe.list.vesselType=Liste des types de bateaux enregistrés observe.list.weightCategory=Liste des catégories poids enregistrées observe.list.weightMeasureType=Liste des types de mesure de poids enregistrés -observe.list.wind=Liste des vents beaufort enregistrés +observe.list.wind=Liste des vents Beaufort enregistrés observe.longlineDetailComposition.action.deleteAllSections=Tout supprimer observe.longlineDetailComposition.action.deleteAllSections.tip=Supprimer toutes les section - paniers et avançons observe.longlineDetailComposition.action.deleteSelectedBasket=Supprimer @@ -1225,9 +1225,9 @@ observe.longlineDetailComposition.sectionsTable.template=Template observe.longlineDetailComposition.sectionsTable.template.tip=Template observe.longlineDetailComposition.tab.branchlineDetail=Détail avançon observe.longlineDetailComposition.tab.composition=Composition -observe.longlineDetailComposition.tab.generate=Génération -observe.longlineDetailComposition.title=Composition détaillée de la palangre -observe.longlineDetailComposition.title.section.cant.use.firstTemplate=Impossible d'utiliser la première template lors de la génération +observe.longlineDetailComposition.tab.generate=Définition des modèles +observe.longlineDetailComposition.title=Schéma de palangre +observe.longlineDetailComposition.title.section.cant.use.firstTemplate=Impossible d'utiliser le premier modèle lors de la génération observe.longlineGlobalComposition.availableMitigationType=Atténuations disponibles observe.longlineGlobalComposition.message.updating=Composition globale de la palangre en cours de modification observe.longlineGlobalComposition.mitigationType=Atténuations @@ -1511,8 +1511,8 @@ observe.setLongline.title=Opération de pêche observe.setLongline.totalBasketsCount=Nombre total de baskets observe.setLongline.totalHooksCount=Nombre total d'avançons observe.setLongline.totalSectionsCount=Nombre total de sections -observe.setLongline.weightedSnap=Snap utilisé -observe.setLongline.weightedSwivel=Émerillon utilisé +observe.setLongline.weightedSnap=Snap lesté +observe.setLongline.weightedSwivel=Émerillon lesté observe.setSeine.currentDirection=Direction du courant (°) observe.setSeine.currentMeasureDepth=Profondeur de mesure du courant (m) observe.setSeine.currentSpeed=Vitesse du courant (nd) @@ -1900,7 +1900,7 @@ observe.title.content.gearCaracteristicTypes=Gestion des types de caractéristiq observe.title.content.gearCaracteristics=Gestion des caractéristiques d'équipement observe.title.content.gears=Gestion des équipements observe.title.content.harbours=GEstion des ports -observe.title.content.healthnesss=Gestion des états de santé +observe.title.content.healthnesss=Gestion des statuts de santé observe.title.content.hookPositions=Gestion des positions d'hameçon observe.title.content.hookSizes=Gestion des tailles d'hameçon observe.title.content.hookTypes=Gestion des types d'hameçon @@ -1982,10 +1982,10 @@ observe.tree.baitHaulingStatus=Status de l'appât au virage observe.tree.baitSettingStatus=Status de l'appât au filage observe.tree.baitType=Type d'appât observe.tree.catchFateLongline=Devenir capture -observe.tree.catchLongline=Capture +observe.tree.catchLongline=Captures observe.tree.country=Pays observe.tree.detectionMode=Mode détection -observe.tree.encounter=Rencontre +observe.tree.encounter=Rencontres observe.tree.encounterType=Type de rencontre observe.tree.floatingObject.unsaved=Nouveau DCP observe.tree.fpaZone=Zone FPA @@ -1994,9 +1994,9 @@ observe.tree.gearCaracteristic=Caractéristique d'un équipement observe.tree.gearCaracteristicType=Type de caractéristique d'équipement observe.tree.gearUseFeaturesSeine=Équipements observe.tree.harbour=Port -observe.tree.healthness=État de santé +observe.tree.healthness=Status de la capture observe.tree.hookPosition=Position du hameçon -observe.tree.hookSize=Taille +observe.tree.hookSize=Taille d'hameçon observe.tree.hookType=Type d'hameçon observe.tree.itemHorizontalPosition=Localisation de l'élément sur la ligne mère observe.tree.itemVerticalPosition=Localisation de l'élément sur l'avançon @@ -2004,8 +2004,8 @@ observe.tree.lengthWeightParameter=Relation Taille-Poids observe.tree.lightsticksColor=Couleur de baton lumineux observe.tree.lightsticksType=Type de baton lumineux observe.tree.lineType=Type de ligne -observe.tree.longlineDetailComposition=Composition détaillée -observe.tree.longlineGlobalComposition=Composition globale +observe.tree.longlineDetailComposition=Schmé de palangre +observe.tree.longlineGlobalComposition=Composition observe.tree.maturityStatus=Maturité observe.tree.mitigationType=Type de mesure d'atténuation observe.tree.nonTargetCatch=Faune accessoire conservée ou rejetée @@ -2032,7 +2032,7 @@ observe.tree.schoolEstimate=Estimation banc observe.tree.sensorBrand=Marque de capteur observe.tree.sensorDataFormat=Format de données de capteur observe.tree.sensorType=Type de capteur -observe.tree.sensorUsed=Capteur utilisé +observe.tree.sensorUsed=Capteurs utilisés observe.tree.setLongline.unsaved=Nouvelle opération de pêche observe.tree.setSeine.unsaved=Nouvelle calée observe.tree.settingShape=Forme au filage diff --git a/observe-validation/src/main/resources/i18n/observe-validation_fr_FR.properties b/observe-validation/src/main/resources/i18n/observe-validation_fr_FR.properties index 8ea8ef6..774af35 100644 --- a/observe-validation/src/main/resources/i18n/observe-validation_fr_FR.properties +++ b/observe-validation/src/main/resources/i18n/observe-validation_fr_FR.properties @@ -50,7 +50,7 @@ validator.basket.bound.floatline1Length=La longueur d'orin 1 être comprise entr validator.basket.bound.floatline2Length=La longueur d'orin 1 être comprise entre %1$s et %2$s.& validator.basket.required.settingIdentifier=L'identifiant de filage est obligatoire. validator.branchline.bound.branchlineLength=La longeur avançon doit être comprise entre %1$s et %2$s. -validator.branchline.bound.tracelineLength=La longueur partie basse être comprise entre %1$s et %2$s. +validator.branchline.bound.tracelineLength=La longueur de la partie basse doit être comprise entre %1$s et %2$s. validator.branchline.desactivated.baitHaulingStatus=L'état d'appât est désactivé. validator.branchline.desactivated.baitSettingStatus=L'état d'appât est désactivé. validator.branchline.desactivated.baitType=Le type d'appât est désactivé. @@ -59,16 +59,16 @@ validator.branchline.desactivated.hookType=Le type d'hameçon est désactivé. validator.branchline.desactivated.topType=Le type est désactivé. validator.branchline.desactivated.tracelineType=Le type est désactivé. validator.branchline.required.settingIdentifier=L'identifiant de filage est obligatoire. -validator.branchline.required.topType=La sélection d'un type de partie haute est obligatoire. -validator.branchline.required.tracelineType=La sélection d'un type de partie basse est obligatoire. +validator.branchline.required.topType=La sélection d'un type de partie supérieure est recommandée +validator.branchline.required.tracelineType=La sélection d'un type de bas de ligne est recommandée validator.branchlinesComposition.bound.length=La longueur doit être comprise entre %s et %s. validator.branchlinesComposition.bound.proportion=La proportion doit être comprise entre %s et %s. -validator.branchlinesComposition.desactivated.topType=Le topType sélectionné est désactivée. -validator.branchlinesComposition.desactivated.tracelineType=Le traceline sélectionné est désactivée. +validator.branchlinesComposition.desactivated.topType=Le type de partie supérieure de ligne sélectionné est désactivé +validator.branchlinesComposition.desactivated.tracelineType=Le type de bas de ligne sélectionné est désactivé validator.branchlinesComposition.required.length=Longueur non renseignée. validator.branchlinesComposition.required.proportion=Proportion non renseignée. validator.branchlinesComposition.required.topType=La sélection d'un topType est obligatoire. -validator.branchlinesComposition.required.tracelineType=La sélection d'un tracelineType est obligatoire. +validator.branchlinesComposition.required.tracelineType=La sélection d'un type de bas de ligne est obligatoire. validator.catchLongline.bound.gonadeWeight=Le poids doit être compris entre %1$s et %2$s validator.catchLongline.comment.tobig=Commentaire trop grand (ne doit pas dépasser 1023 caractères). validator.catchLongline.desactivated.catchFateLongline=Le devenir sélectionné est désactivé. -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 9753766c2daa88bfe4af98d92695ff5e1f1e1b05 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:40:45 2015 +0200 refs #6475 revue de la décoration des calées --- .../src/main/java/fr/ird/observe/DecoratorService.java | 2 ++ .../ird/observe/ui/tree/AbstractObserveTreeCellRenderer.java | 10 ++++++++++ .../ui/tree/loadors/ActivityLonglineNodeChildLoador.java | 1 + .../observe/ui/tree/loadors/ActivitySeineNodeChildLoador.java | 1 + .../src/main/resources/i18n/observe-swing_en_GB.properties | 2 ++ .../src/main/resources/i18n/observe-swing_es_ES.properties | 2 ++ .../src/main/resources/i18n/observe-swing_fr_FR.properties | 8 +++++--- 7 files changed, 23 insertions(+), 3 deletions(-) diff --git a/observe-business/src/main/java/fr/ird/observe/DecoratorService.java b/observe-business/src/main/java/fr/ird/observe/DecoratorService.java index 3d67720..851106b 100644 --- a/observe-business/src/main/java/fr/ird/observe/DecoratorService.java +++ b/observe-business/src/main/java/fr/ird/observe/DecoratorService.java @@ -423,7 +423,9 @@ public class DecoratorService extends DecoratorProvider { registerMultiJXPathDecorator( FloatingObject.class, "DCP ${objectType/" + libelle + "}$s", "##", " - "); + //FIXME Remove this registerJXPathDecorator(SetSeine.class, t("observe.common.setSeine")); + //FIXME Remove this registerJXPathDecorator(SetLongline.class, t("observe.common.setLongline")); registerDefaultReferenceEntityDecorator(ObjectFate.class, libelle); registerDefaultReferenceEntityDecorator(Organism.class, libelle); diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/tree/AbstractObserveTreeCellRenderer.java b/observe-swing/src/main/java/fr/ird/observe/ui/tree/AbstractObserveTreeCellRenderer.java index d7e16d7..0886000 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/tree/AbstractObserveTreeCellRenderer.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/tree/AbstractObserveTreeCellRenderer.java @@ -278,6 +278,16 @@ public abstract class AbstractObserveTreeCellRenderer extends AbstractNavTreeCel return text; } + if (node instanceof SetLonglineNode) { + String text = t("observe.tree.setLongline"); + return text; + } + + if (node instanceof SetSeineNode) { + String text = t("observe.tree.setSeine"); + return text; + } + if (node instanceof EntityNodeSupport) { EntityNodeSupport entityNodeSupport = (EntityNodeSupport) node; diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivityLonglineNodeChildLoador.java b/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivityLonglineNodeChildLoador.java index c29fd4f..205c074 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivityLonglineNodeChildLoador.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivityLonglineNodeChildLoador.java @@ -50,6 +50,7 @@ public class ActivityLonglineNodeChildLoador extends AbstractNodeChildLoador<Str static { n("observe.tree.encounter"); n("observe.tree.sensorUsed"); + n("observe.tree.setLongline"); } public ActivityLonglineNodeChildLoador() { diff --git a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivitySeineNodeChildLoador.java b/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivitySeineNodeChildLoador.java index 6b69659..2144200 100644 --- a/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivitySeineNodeChildLoador.java +++ b/observe-swing/src/main/java/fr/ird/observe/ui/tree/loadors/ActivitySeineNodeChildLoador.java @@ -50,6 +50,7 @@ public class ActivitySeineNodeChildLoador extends AbstractNodeChildLoador<Floati static { n("observe.common.observedSystem"); + n("observe.tree.setSeine"); } public ActivitySeineNodeChildLoador() { diff --git a/observe-swing/src/main/resources/i18n/observe-swing_en_GB.properties b/observe-swing/src/main/resources/i18n/observe-swing_en_GB.properties index be9bfb3..8d9da57 100644 --- a/observe-swing/src/main/resources/i18n/observe-swing_en_GB.properties +++ b/observe-swing/src/main/resources/i18n/observe-swing_en_GB.properties @@ -2035,7 +2035,9 @@ observe.tree.sensorBrand=Sensor brand observe.tree.sensorDataFormat=Sensor data format observe.tree.sensorType=Sensor type observe.tree.sensorUsed=Sensor used +observe.tree.setLongline= observe.tree.setLongline.unsaved=New fishing operation +observe.tree.setSeine= observe.tree.setSeine.unsaved=New set observe.tree.settingShape=Setting shape observe.tree.sex=Sex diff --git a/observe-swing/src/main/resources/i18n/observe-swing_es_ES.properties b/observe-swing/src/main/resources/i18n/observe-swing_es_ES.properties index 8a8a625..8650cf9 100644 --- a/observe-swing/src/main/resources/i18n/observe-swing_es_ES.properties +++ b/observe-swing/src/main/resources/i18n/observe-swing_es_ES.properties @@ -2035,7 +2035,9 @@ observe.tree.sensorBrand= observe.tree.sensorDataFormat= observe.tree.sensorType= observe.tree.sensorUsed= +observe.tree.setLongline= observe.tree.setLongline.unsaved=Nuevo Lance +observe.tree.setSeine= observe.tree.setSeine.unsaved=Nuevo Lance observe.tree.settingShape= observe.tree.sex=Sexo diff --git a/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties b/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties index 80767a6..f91c6b9 100644 --- a/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties +++ b/observe-swing/src/main/resources/i18n/observe-swing_fr_FR.properties @@ -1101,7 +1101,7 @@ observe.init.local.db.detected=%1$s détectée. observe.init.no.initial.dump.detected=Base embarquée %1$s non détectée. observe.init.no.local.db.detected=Base locale %1$s non détectée. observe.init.storage.done=Initialisation du service de persistance terminé. -observe.label.coefficients.info=Les coefficients des relations sont de la forme nom=valeur et sont séparé par des : (exemple : a=1:b=2:c=3) +observe.label.coefficients.info=Les coefficients des relations sont de la forme nom\=valeur et sont séparé par des \: (exemple \: a\=1\:b\=2\:c\=3) observe.label.lengthWeightFormula.info=La relation poids permet de calculer le poids à partir de la taille, elle doit contenir la variable L observe.label.usage.data.title=Donnée '%1$s' (%2$d occurrences) observe.label.usage.referentiel.title=Référentiel '%1$s' (%2$d occurrences) @@ -2004,7 +2004,7 @@ observe.tree.lengthWeightParameter=Relation Taille-Poids observe.tree.lightsticksColor=Couleur de baton lumineux observe.tree.lightsticksType=Type de baton lumineux observe.tree.lineType=Type de ligne -observe.tree.longlineDetailComposition=Schmé de palangre +observe.tree.longlineDetailComposition=Schéma de palangre observe.tree.longlineGlobalComposition=Composition observe.tree.maturityStatus=Maturité observe.tree.mitigationType=Type de mesure d'atténuation @@ -2033,7 +2033,9 @@ observe.tree.sensorBrand=Marque de capteur observe.tree.sensorDataFormat=Format de données de capteur observe.tree.sensorType=Type de capteur observe.tree.sensorUsed=Capteurs utilisés +observe.tree.setLongline=Détails de l'opération observe.tree.setLongline.unsaved=Nouvelle opération de pêche +observe.tree.setSeine=Calée observe.tree.setSeine.unsaved=Nouvelle calée observe.tree.settingShape=Forme au filage observe.tree.sex=Sexe @@ -2049,7 +2051,7 @@ observe.tree.targetCatch=Capture cible observe.tree.targetDiscarded=Rejet de thon observe.tree.targetSample=Echantillon thon rejeté observe.tree.targetSampleCapture=Echantillon thon capturé -observe.tree.tdr=Enregistreur de profondeur +observe.tree.tdr=Enregistreurs de profondeur observe.tree.transmittingBuoyOperation=Opération balise observe.tree.transmittingBuoyType=Type de balise observe.tree.tripLongline.unsaved=Nouvelle marée -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 5915a0cc6f8d1e2251559e62e18ca5c02d2c515e Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:41:34 2015 +0200 refs #6983 mise à jour aussi du topiaversion --- .../src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql | 2 +- .../src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql index cbf6f71..ee284e0 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql @@ -1 +1 @@ -UPDATE observe_seine.gearusefeatures SET usedintrip = true WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file +UPDATE observe_seine.gearusefeatures SET usedintrip = true, topiaversion = topiaversion + 1 WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql index cbf6f71..d8bbf3b 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql @@ -1 +1 @@ -UPDATE observe_seine.gearusefeatures SET usedintrip = true WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file +UPDATE observe_seine.gearusefeatures SET usedintrip = true , topiaversion = topiaversion + 1 WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 42101d5f2b5607c97382389d6d41c249bb6ac16b Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:47:07 2015 +0200 refs #6991 ajout migration pour renommage du palangrier inconnu --- .../migration/versions/DataSourceMigrationForVersion_4_0_RC3.java | 3 +++ .../src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql | 1 + .../src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql | 1 + 3 files changed, 5 insertions(+) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java index b8e7dec..7aef878 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java @@ -48,6 +48,9 @@ public abstract class DataSourceMigrationForVersion_4_0_RC3 extends AbstractObse // See https://forge.codelutin.com/issues/6983 loadScript("update-senne-gear-usedInTrip"); + // See https://forge.codelutin.com/issues/6991 + loadScript("rename-unknown-longliner"); + } public static class H2DataSourceMigrationForVersion extends DataSourceMigrationForVersion_4_0_RC3 { diff --git a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql new file mode 100644 index 0000000..c952588 --- /dev/null +++ b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql @@ -0,0 +1 @@ +UPDATE OBSERVE_COMMON.VESSEL SET LABEL2= 'Palengrier inconnu', TOPIAVERSION = TOPIAVERSION + 1 WHERE TOPIAID ='fr.ird.observe.entities.referentiel.Vessel#1239832686129#0.1'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql new file mode 100644 index 0000000..c952588 --- /dev/null +++ b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql @@ -0,0 +1 @@ +UPDATE OBSERVE_COMMON.VESSEL SET LABEL2= 'Palengrier inconnu', TOPIAVERSION = TOPIAVERSION + 1 WHERE TOPIAID ='fr.ird.observe.entities.referentiel.Vessel#1239832686129#0.1'; \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit e93fc7619a7ef222aea6e3ba6f0e562854fb4930 Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 11:50:43 2015 +0200 add migration db for tests --- .../src/test/resources/db/4.0-RC3/referentiel.sql.gz | Bin 0 -> 138124 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/observe-business/src/test/resources/db/4.0-RC3/referentiel.sql.gz b/observe-business/src/test/resources/db/4.0-RC3/referentiel.sql.gz new file mode 100644 index 0000000..aa4c4d3 Binary files /dev/null and b/observe-business/src/test/resources/db/4.0-RC3/referentiel.sql.gz differ -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 30befff0acb8f567ce04e71aa3a39e711625438a Author: Tony CHEMIT <chemit@codelutin.com> Date: Fri Apr 17 12:04:29 2015 +0200 use last release of topia --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index e5146cd..ed58d3f 100644 --- a/pom.xml +++ b/pom.xml @@ -111,7 +111,7 @@ <eugenePluginVersion>2.14</eugenePluginVersion> - <topiaVersion>2.10-SNAPSHOT</topiaVersion> + <topiaVersion>2.9.5.2</topiaVersion> <jaxxVersion>2.23</jaxxVersion> <nuitonI18nVersion>3.3</nuitonI18nVersion> <nuitonValidatorVersion>3.0</nuitonValidatorVersion> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit da613b27c5d4ccbd1b7d5b2a680b74aea03f7d69 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:05:43 2015 +0000 [jgitflow-maven-plugin]updating poms for 4.0-RC4-SNAPSHOT development --- observe-business/pom.xml | 2 +- observe-entities/pom.xml | 2 +- observe-swing/pom.xml | 2 +- observe-validation/pom.xml | 2 +- pom.xml | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/observe-business/pom.xml b/observe-business/pom.xml index 0b55a2f..4fa3767 100644 --- a/observe-business/pom.xml +++ b/observe-business/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3-SNAPSHOT</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-business</artifactId> diff --git a/observe-entities/pom.xml b/observe-entities/pom.xml index 3b67f1b..9f42a77 100644 --- a/observe-entities/pom.xml +++ b/observe-entities/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3-SNAPSHOT</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-entities</artifactId> diff --git a/observe-swing/pom.xml b/observe-swing/pom.xml index 83abcb5..94f8976 100644 --- a/observe-swing/pom.xml +++ b/observe-swing/pom.xml @@ -26,7 +26,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3-SNAPSHOT</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-swing</artifactId> diff --git a/observe-validation/pom.xml b/observe-validation/pom.xml index 2f595ee..538aca6 100644 --- a/observe-validation/pom.xml +++ b/observe-validation/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3-SNAPSHOT</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-validation</artifactId> diff --git a/pom.xml b/pom.xml index ed58d3f..3a324fd 100644 --- a/pom.xml +++ b/pom.xml @@ -33,7 +33,7 @@ <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3-SNAPSHOT</version> + <version>4.0-RC4-SNAPSHOT</version> <packaging>pom</packaging> <name>ObServe</name> <description>Projet ObServe</description> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 055b7340e3cb115964f36032eaa328c13dc4f69a Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:36:11 2015 +0000 add missing license headers --- .../DataSourceMigrationForVersion_4_0_RC3.java | 22 ++++++++++++++++++++++ .../db/4.0-RC3/add-foreign-key-indexes-PG.sql | 21 +++++++++++++++++++++ .../db/4.0-RC3/rename-unknown-longliner-H2.sql | 21 +++++++++++++++++++++ .../db/4.0-RC3/rename-unknown-longliner-PG.sql | 21 +++++++++++++++++++++ .../db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql | 21 +++++++++++++++++++++ .../db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql | 21 +++++++++++++++++++++ 6 files changed, 127 insertions(+) diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java index 7aef878..80dd421 100644 --- a/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java +++ b/observe-entities/src/main/java/fr/ird/observe/entities/migration/versions/DataSourceMigrationForVersion_4_0_RC3.java @@ -1,5 +1,27 @@ package fr.ird.observe.entities.migration.versions; +/* + * #%L + * ObServe :: Entities + * %% + * Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit + * %% + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public + * License along with this program. If not, see + * <http://www.gnu.org/licenses/gpl-3.0.html>. + * #L% + */ + import fr.ird.observe.entities.migration.AbstractDataSourceMigration; import fr.ird.observe.entities.migration.AbstractObserveMigrationCallBack; import fr.ird.observe.entities.migration.H2DataSourceMigration; diff --git a/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql index cc832ae..dfedff2 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/add-foreign-key-indexes-PG.sql @@ -1,3 +1,24 @@ +--- +-- #%L +-- ObServe :: Entities +-- %% +-- Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit +-- %% +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public +-- License along with this program. If not, see +-- <http://www.gnu.org/licenses/gpl-3.0.html>. +-- #L% +--- CREATE INDEX idx_observe_common_gear_gearcaracteristic_gear ON OBSERVE_COMMON.gear_gearcaracteristic(gear); CREATE INDEX idx_observe_common_ocean_species_species ON OBSERVE_COMMON.ocean_species(species); CREATE INDEX idx_observe_common_species_specieslist_specieslist ON OBSERVE_COMMON.species_specieslist(speciesList); diff --git a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql index c952588..0aaa32f 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-H2.sql @@ -1 +1,22 @@ +--- +-- #%L +-- ObServe :: Entities +-- %% +-- Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit +-- %% +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public +-- License along with this program. If not, see +-- <http://www.gnu.org/licenses/gpl-3.0.html>. +-- #L% +--- UPDATE OBSERVE_COMMON.VESSEL SET LABEL2= 'Palengrier inconnu', TOPIAVERSION = TOPIAVERSION + 1 WHERE TOPIAID ='fr.ird.observe.entities.referentiel.Vessel#1239832686129#0.1'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql index c952588..0aaa32f 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/rename-unknown-longliner-PG.sql @@ -1 +1,22 @@ +--- +-- #%L +-- ObServe :: Entities +-- %% +-- Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit +-- %% +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public +-- License along with this program. If not, see +-- <http://www.gnu.org/licenses/gpl-3.0.html>. +-- #L% +--- UPDATE OBSERVE_COMMON.VESSEL SET LABEL2= 'Palengrier inconnu', TOPIAVERSION = TOPIAVERSION + 1 WHERE TOPIAID ='fr.ird.observe.entities.referentiel.Vessel#1239832686129#0.1'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql index ee284e0..f39c6a5 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-H2.sql @@ -1 +1,22 @@ +--- +-- #%L +-- ObServe :: Entities +-- %% +-- Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit +-- %% +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public +-- License along with this program. If not, see +-- <http://www.gnu.org/licenses/gpl-3.0.html>. +-- #L% +--- UPDATE observe_seine.gearusefeatures SET usedintrip = true, topiaversion = topiaversion + 1 WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file diff --git a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql index d8bbf3b..1f3d7eb 100644 --- a/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql +++ b/observe-entities/src/main/resources/db/4.0-RC3/update-senne-gear-usedInTrip-PG.sql @@ -1 +1,22 @@ +--- +-- #%L +-- ObServe :: Entities +-- %% +-- Copyright (C) 2008 - 2015 IRD, Codelutin, Tony Chemit +-- %% +-- This program is free software: you can redistribute it and/or modify +-- it under the terms of the GNU General Public License as +-- published by the Free Software Foundation, either version 3 of the +-- License, or (at your option) any later version. +-- +-- This program is distributed in the hope that it will be useful, +-- but WITHOUT ANY WARRANTY; without even the implied warranty of +-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +-- GNU General Public License for more details. +-- +-- You should have received a copy of the GNU General Public +-- License along with this program. If not, see +-- <http://www.gnu.org/licenses/gpl-3.0.html>. +-- #L% +--- UPDATE observe_seine.gearusefeatures SET usedintrip = true , topiaversion = topiaversion + 1 WHERE gear = 'fr.ird.observe.entities.referentiel.Gear#1239832686125#0.20'; \ No newline at end of file -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 94f5263bf7c7ea5a06e219b9705d29caf8cb8e15 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:40:30 2015 +0000 [jgitflow-maven-plugin]updating poms for branch'release/4.0-RC3' with non-snapshot versions --- pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pom.xml b/pom.xml index 3a324fd..755e0d5 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ </parent> <groupId>fr.ird.observe</groupId> - <artifactId>observe</artifactId> + <artifactId>observe</artifactId> git <version>4.0-RC4-SNAPSHOT</version> <packaging>pom</packaging> <name>ObServe</name> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 0618db0735425fda05cde3c194cd147462ffe76e Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:45:10 2015 +0000 [jgitflow-maven-plugin]updating develop poms to master versions to avoid merge conflicts --- observe-business/pom.xml | 2 +- observe-entities/pom.xml | 2 +- observe-validation/pom.xml | 2 +- pom.xml | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/observe-business/pom.xml b/observe-business/pom.xml index 4fa3767..708e48d 100644 --- a/observe-business/pom.xml +++ b/observe-business/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC4-SNAPSHOT</version> + <version>4.0-RC3</version> </parent> <artifactId>observe-business</artifactId> diff --git a/observe-entities/pom.xml b/observe-entities/pom.xml index 9f42a77..de2c136 100644 --- a/observe-entities/pom.xml +++ b/observe-entities/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC4-SNAPSHOT</version> + <version>4.0-RC3</version> </parent> <artifactId>observe-entities</artifactId> diff --git a/observe-validation/pom.xml b/observe-validation/pom.xml index 538aca6..023d4ef 100644 --- a/observe-validation/pom.xml +++ b/observe-validation/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC4-SNAPSHOT</version> + <version>4.0-RC3</version> </parent> <artifactId>observe-validation</artifactId> diff --git a/pom.xml b/pom.xml index 755e0d5..3a324fd 100644 --- a/pom.xml +++ b/pom.xml @@ -32,7 +32,7 @@ </parent> <groupId>fr.ird.observe</groupId> - <artifactId>observe</artifactId> git + <artifactId>observe</artifactId> <version>4.0-RC4-SNAPSHOT</version> <packaging>pom</packaging> <name>ObServe</name> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/6944 in repository observe. See http://git.codelutin.com/observe.git commit 360fd050006067bb92bb4e8bfe9b616195448ce2 Author: Maven Release <maven-release@codelutin.com> Date: Fri Apr 17 10:45:11 2015 +0000 [jgitflow-maven-plugin]Updating develop poms back to pre merge state --- observe-business/pom.xml | 2 +- observe-entities/pom.xml | 2 +- observe-validation/pom.xml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/observe-business/pom.xml b/observe-business/pom.xml index 708e48d..4fa3767 100644 --- a/observe-business/pom.xml +++ b/observe-business/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-business</artifactId> diff --git a/observe-entities/pom.xml b/observe-entities/pom.xml index de2c136..9f42a77 100644 --- a/observe-entities/pom.xml +++ b/observe-entities/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-entities</artifactId> diff --git a/observe-validation/pom.xml b/observe-validation/pom.xml index 023d4ef..538aca6 100644 --- a/observe-validation/pom.xml +++ b/observe-validation/pom.xml @@ -28,7 +28,7 @@ <parent> <groupId>fr.ird.observe</groupId> <artifactId>observe</artifactId> - <version>4.0-RC3</version> + <version>4.0-RC4-SNAPSHOT</version> </parent> <artifactId>observe-validation</artifactId> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
participants (1)
-
codelutin.com scm