config/eclipse/hibernate.cfg.xml.template
author Asier Lostalé <asier.lostale@openbravo.com>
Wed, 18 Mar 2015 10:50:25 +0100
changeset 26205 e7c1d9e51ba8
parent 6702 690d2af86089
permissions -rw-r--r--
fixed bug 29329: can't download attachments for 2 rows with same name & no ext

When trying to download at once attachemnts for different records that have the
same name and it does not have extension, it fails.

The problem is in case of duplicated names to be included within the zipped file,
a number is appended to the file name before the extension. Extesion is present
is assumed, failing if not.

Fix: don't assume file name has extension.
martin@6008
     1
<?xml version="1.0" encoding="UTF-8" ?>
martin@6008
     2
<!--
martin@6008
     3
 *************************************************************************
martin@6008
     4
 * The contents of this file are subject to the Openbravo Public License 
martin@6008
     5
 * Version 1.1 (the "License"), being the Mozilla Public License 
martin@6008
     6
 * version 1.1  with a permitted attribution clause ; you may not use 
martin@6008
     7
 * this file except in compliance with the License. 
martin@6008
     8
 * You may obtain a copy of the License at  
martin@6008
     9
 * http://www.openbravo.com/legal/license.txt 
martin@6008
    10
 * Software distributed under the License is distributed on an 
martin@6008
    11
 * "AS IS" basis, WITHOUT WARRANTY OF  ANY KIND, either express or 
martin@6008
    12
 * implied. See the License for the specific language governing rights 
martin@6008
    13
 * and  limitations under the License. 
martin@6008
    14
 * The Original Code is Openbravo ERP. 
ggi@6702
    15
 * The Initial Developer of the Original Code is Openbravo SLU 
ggi@6702
    16
 * All portions are Copyright (C) 2010 Openbravo SLU 
martin@6008
    17
 * All Rights Reserved. 
ggi@6702
    18
 * Contributor(s): Openbravo S.L.U.
martin@6008
    19
 ************************************************************************
martin@6008
    20
-->
martin@6008
    21
<!DOCTYPE hibernate-configuration PUBLIC
martin@6008
    22
                "-//Hibernate/Hibernate Configuration DTD 3.0//EN"
martin@6008
    23
                "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
martin@6008
    24
<hibernate-configuration>
martin@6008
    25
    <session-factory>
martin@6008
    26
    <!-- Postgress Settings -->
martin@6008
    27
        <property name="hibernate.dialect">org.hibernate.dialect.PostgreSQLDialect</property>
martin@6008
    28
        <property name="hibernate.connection.driver_class">org.postgresql.Driver</property>
martin@6008
    29
        <property name="hibernate.connection.url">jdbc:postgresql://localhost:5432/obpi</property>
martin@6008
    30
        <property name="hibernate.connection.username">tad</property>
martin@6008
    31
        <property name="hibernate.connection.password">TAD</property>
martin@6008
    32
        <property name="hibernate.cache.use_second_level_cache">false</property>
martin@6008
    33
    <!-- Oracle Settings
martin@6008
    34
        <property name="hibernate.dialect">org.hibernate.dialect.OracleDialect</property>
martin@6008
    35
        <property name="hibernate.connection.driver_class">oracle.jdbc.driver.OracleDriver</property>
martin@6008
    36
        <property name="hibernate.connection.url">jdbc:oracle:thin:@localhost:1521:ob</property>
martin@6008
    37
        <property name="hibernate.connection.username">pi</property>
martin@6008
    38
        <property name="hibernate.connection.password">tad</property>
martin@6008
    39
        <property name="hibernate.default_schema">PI</property>
martin@6008
    40
        <property name="hibernate.cache.use_second_level_cache">false</property>
martin@6008
    41
         -->
martin@6008
    42
    </session-factory> 
martin@6008
    43
</hibernate-configuration>