diff --git a/HACKING b/HACKING index ccb66b6ce..8eff764a5 100644 --- a/HACKING +++ b/HACKING @@ -87,12 +87,21 @@ Fedora * Install requirements:: - # yum install git maven java-1.6.0-openjdk postgresql postgresql-server python-docutils make gettext gnu-free-fonts-compat + # yum install git maven java-1.7.0-openjdk-devel postgresql postgresql-server python-docutils make gettext gnu-free-fonts-compat + +.. WARNING:: Use the following command in Fedora 16 or below:: + + # yum install git maven java-1.6.0-openjdk postgresql postgresql-server python-docutils make gettext gnu-free-fonts-compat * Start database service:: - # service postgresql initdb - # service postgresql start + # su - postgres -c "PGDATA=/var/lib/pgsql/data initdb" + # systemctl start postgresql.service + +.. WARNING:: Use the following commands in Fedora 16 or below:: + + # service postgresql initdb + # service postgresql start * Connect to database:: @@ -110,11 +119,13 @@ Fedora ALTER USER postgres WITH PASSWORD 'postgres'; -* Edit ``/var/lib/pgsql/data/pg_hba.conf`` and replace ``ident`` by ``md5`` +.. WARNING:: These steps are only for Fedora 16 and below: -* Reload database configuration:: + * Edit ``/var/lib/pgsql/data/pg_hba.conf`` and replace ``ident`` by ``md5`` - # service postgresql reload + * Reload database configuration:: + + # service postgresql reload * Download source code:: diff --git a/ganttzk/src/main/java/org/zkoss/ganttz/data/Task.java b/ganttzk/src/main/java/org/zkoss/ganttz/data/Task.java index 7da3a7fa7..fcb215e11 100644 --- a/ganttzk/src/main/java/org/zkoss/ganttz/data/Task.java +++ b/ganttzk/src/main/java/org/zkoss/ganttz/data/Task.java @@ -563,4 +563,11 @@ public abstract class Task implements ITaskFundamentalProperties { return fundamentalProperties.getLastTimesheetDate(); } + public void firePropertyChangeForTaskDates() { + fundamentalPropertiesListeners.firePropertyChange("beginDate", null, + getBeginDate()); + fundamentalPropertiesListeners.firePropertyChange("endDate", null, + getEndDate()); + } + } diff --git a/libreplan-business/src/main/java/org/libreplan/business/common/BaseEntity.java b/libreplan-business/src/main/java/org/libreplan/business/common/BaseEntity.java index 2635a206a..cf2b3650a 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/common/BaseEntity.java +++ b/libreplan-business/src/main/java/org/libreplan/business/common/BaseEntity.java @@ -110,7 +110,7 @@ public abstract class BaseEntity implements INewObject { } protected static T create(T baseEntity) { - baseEntity.newObject = true; + baseEntity.setNewObject(true); return baseEntity; } diff --git a/libreplan-business/src/main/java/org/libreplan/business/common/IntegrationEntity.java b/libreplan-business/src/main/java/org/libreplan/business/common/IntegrationEntity.java index 9856fdeae..915762aff 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/common/IntegrationEntity.java +++ b/libreplan-business/src/main/java/org/libreplan/business/common/IntegrationEntity.java @@ -67,7 +67,7 @@ public abstract class IntegrationEntity extends BaseEntity { T integrationEntity, String code) { BaseEntity.create(integrationEntity); - integrationEntity.code = code; + integrationEntity.setCode(code); return integrationEntity; @@ -82,7 +82,7 @@ public abstract class IntegrationEntity extends BaseEntity { T integrationEntity) { BaseEntity.create(integrationEntity); - integrationEntity.code = generateCode(); + integrationEntity.setCode(generateCode()); return integrationEntity; diff --git a/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderElementDAO.java b/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderElementDAO.java index 92c0201ca..87524d7f2 100644 --- a/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderElementDAO.java +++ b/libreplan-business/src/main/java/org/libreplan/business/orders/daos/IOrderElementDAO.java @@ -109,6 +109,8 @@ public interface IOrderElementDAO extends IIntegrationEntityDAO { EffortDuration calculateMinWorkedHours(final List list); + boolean isAlreadyInUse(OrderElement orderElement); + boolean isAlreadyInUseThisOrAnyOfItsChildren(OrderElement orderElement); /** @@ -130,6 +132,8 @@ public interface IOrderElementDAO extends IIntegrationEntityDAO { boolean hasImputedExpenseSheet(Long id) throws InstanceNotFoundException; + boolean hasImputedExpenseSheetThisOrAnyOfItsChildren(Long id) throws InstanceNotFoundException; + OrderElement findByExternalCode(String code) throws InstanceNotFoundException; public List findByLabelsAndCriteria(Set