Commit graph

373 commits

Author SHA1 Message Date
Óscar González Fernández
b0439fbf57 ItEr20S04ArquitecturaServidorItEr19S04: Changing test so it works in all databases, not only in postgres. 2009-08-05 14:37:05 +02:00
Óscar González Fernández
79b798519f ItEr20S04ArquitecturaServidorItEr19S04: Adding automatical exception translation, so calling convertHibernateAccessException(e) is no longer necessary. 2009-08-05 14:36:17 +02:00
Óscar González Fernández
3e8d8e98d0 ItEr20S04ArquitecturaServidorItEr19S04: Changing types of daos autowired to interfaces.
When autowiring you must specify the interface. If Spring proxifies
your daos, as if you want automatical exception translation, it
wouldn't autowire anymore.
2009-08-05 14:36:04 +02:00
Manuel Rego Casasnovas
344bdfcf25 ItEr20S04ArquitecturaServidorItEr19S04: Renamed "ResourceDAOHibernate" to "ResourceDAO" and "WorkerDAOHibernate" to "WorkerDAO". 2009-08-05 11:34:47 +02:00
Manuel Rego Casasnovas
8943545441 ItEr20S04ArquitecturaServidorItEr19S04: Removed methods "forceLoad*" from entities. 2009-08-05 11:16:12 +02:00
Óscar González Fernández
c27e3ad336 ItEr20S04ArquitecturaServidorItEr19S04: Forcing hibernate to recreate always the schema when testing.
This also has the desired side effect of removing test data created in tests outside of transactions.
2009-08-04 22:15:58 +02:00
Óscar González Fernández
20aa9f0d99 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Adding method to PredefinedAdvanceTypes to retrieve the associated AdvanceType. 2009-08-04 19:08:10 +02:00
Óscar González Fernández
76fede6142 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Creating unique constraint for AdvanceType#unitName.
WARNING: test schema might be needed to be droped.
2009-08-04 19:07:52 +02:00
Óscar González Fernández
bede1788d9 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Moving to proper package. 2009-08-04 19:04:13 +02:00
Óscar González Fernández
4fa6682147 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Changing types internal names to english. 2009-08-04 19:04:13 +02:00
Óscar González Fernández
e1efe3d7be ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Retrieving default types from enum. 2009-08-04 19:04:13 +02:00
Manuel Rego Casasnovas
4ec02f6b27 ItEr20S04ArquitecturaServidorItEr19S04: Removing unnecessary files. 2009-08-04 18:55:53 +02:00
Manuel Rego Casasnovas
7006262376 ItEr20S04ArquitecturaServidorItEr19S04: Added access property for id field. 2009-08-04 18:53:31 +02:00
Manuel Rego Casasnovas
08f6cb7c90 ItEr20S04ArquitecturaServidorItEr19S04: Making all the business entities extend the BaseEntity. 2009-08-04 18:50:05 +02:00
Manuel Rego Casasnovas
55f7bd3c55 ItEr20S04ArquitecturaServidorItEr19S04: Removing makeTransient methods from OrderElement class. 2009-08-04 17:35:32 +02:00
Manuel Rego Casasnovas
963dd7dbb3 ItEr20S04ArquitecturaServidorItEr19S04: Removing makeTransient from ResourceAllocations. 2009-08-04 17:32:18 +02:00
Manuel Rego Casasnovas
8976b8ed42 ItEr20S04ArquitecturaServidorItEr19S04: Fixed casting problem when an Order is not valid. 2009-08-04 12:14:46 +02:00
Susana Montes Pedreira
e08a34793c ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Add default types of advances when startup the database. 2009-08-04 12:04:49 +02:00
Manuel Rego Casasnovas
fbed099f01 ItEr20S04ArquitecturaServidorItEr19S04: Fixed division by 0 problem rendering an HoursGroup. 2009-08-04 11:39:03 +02:00
Manuel Rego Casasnovas
afc34299de ItEr20S04ArquitecturaServidorItEr19S04: Fixing problem with StaleObjectStateException in HoursGroup. 2009-08-04 11:30:06 +02:00
Óscar González Fernández
a37285c7e8 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Extracting equivalence method and moved to AdvanceType
Adding test case that reproduced the error.
This way they're more resilient to change.
2009-08-03 21:51:39 +02:00
Óscar González Fernández
25f6116ca2 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Fixing bug. IMPORTANT: The comparison between Long objects must be done using equals instead of instance equality operator.
Adding test case that reproduced the error.
This way they're more resilient to change.
2009-08-03 21:43:54 +02:00
Óscar González Fernández
5d565508a7 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Stating the types of the checked exceptions that can be thrown instead of throwing Exception.
This way they're more resilient to change.
2009-08-03 21:43:47 +02:00
Óscar González Fernández
4461f72dcf ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Adding new constructors for Duplicate...Exceptions so the class can be passed.
This way they're more resilient to change.
2009-08-03 21:43:43 +02:00
Óscar González Fernández
9c5a913d84 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Extracting methods so the same level of abstraction is achieved. 2009-08-03 21:43:38 +02:00
Óscar González Fernández
466e4971f2 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Removing unnecessary check, since if the set is empty it doesn't enter into the for. 2009-08-03 21:43:34 +02:00
Óscar González Fernández
2a9ec2240f ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Removed check already done in existsParentsWithSameAdvanceType. 2009-08-03 21:43:28 +02:00
Óscar González Fernández
2cef4848d5 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: OrderElement uses its parent relationship instead of OrderDAO. OrdersDAORegistry no longer necessary, so it's erased. 2009-08-03 21:42:46 +02:00
Óscar González Fernández
925e352480 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: Making setParent protected so it cannot be modified and left in a inconsistent state. The parent relationship is automically set when adding a child to an OrderLineGroup. 2009-08-03 21:42:41 +02:00
Óscar González Fernández
414e5d2c8b ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: adding scale attribute to AdvanceMeasurement.
The specified value in analysis is 2, should it be 4 as in AdvanceAssignment#maxValue?
2009-08-03 21:42:26 +02:00
Susana Montes Pedreira
6667f4fab7 ItEr20S07CUIntroducionAvanceUnidadeTraballoItEr19S12: show the types of advances/ create, modify and remove advances types
Signed-off-by: Óscar González Fernández <ogonzalez@igalia.com>
Added scale attributes to precision and defaultMaxValues, so the precision is 4 as required.
2009-08-03 19:01:03 +02:00
Diego Pino Garcia
14685fb1ad ItEr20S08CUProcuraPartesTraballoDadosAltaNoSistemaItEr19S13: Add more columns to WorkReport listing 2009-08-03 17:13:09 +02:00
Manuel Rego Casasnovas
3501d6da85 ItEr20S04ArquitecturaServidorItEr19S04: Removed "*.impl" packages. 2009-08-03 17:00:19 +02:00
Diego Pino Garcia
5fe313877c ItEr20S08CUProcuraPartesTraballoDadosAltaNoSistemaItEr19S13: [Refactoring] When force loading entities, replace callings to getId for something else 2009-08-03 16:57:10 +02:00
Manuel Rego Casasnovas
884b2de18a ItEr20S04ArquitecturaServidorItEr19S04: Renamed interfaces with prefix "I*". 2009-08-03 14:36:57 +02:00
Manuel Rego Casasnovas
8b2a7c0647 ItEr20S04ArquitecturaServidorItEr19S04: Renamed all "*dao" files to "*DAO". 2009-08-03 14:09:26 +02:00
Diego Pino Garcia
18a4858fbe ItEr19S10CUIntroducionPartesTraballoManualmenteItEr18S11: [Fix bug] WorkReportLine.Resource and WorkReportLine.OrderElement cannot be null 2009-08-03 14:01:39 +02:00
Óscar González Fernández
9a58bcd899 ItEr18S09CUCreacionProxectoPlanificacionItEr17S10: Adding api comments to IContext. 2009-08-03 13:19:44 +02:00
Óscar González Fernández
82055b7497 Adding factory method create an HoursGroup in order to mark just created HoursGroup with newObject = true.
It has been neccessary to do a hack to avoid exception at OrderServiceTest#removingOrderWithAssociatedTasksDeletesThem.
2009-08-03 13:19:44 +02:00
Óscar González Fernández
b11c8fb101 HoursGroup now inherits from BaseEntity. so the version mapping must be based on property. 2009-08-03 13:19:44 +02:00
Manuel Rego Casasnovas
9cd1aa2a8a Adding setVersion method since the entity must be accessed on a property basis in order to work newObject hack. 2009-08-03 13:19:44 +02:00
Manuel Rego Casasnovas
70d2ea10ba Added BaseEntity. 2009-08-03 13:19:44 +02:00
Óscar González Fernández
6d6b7d3416 ItEr18S09CUCreacionProxectoPlanificacionItEr17S10: Avoiding exception when saving several consecutive times. 2009-07-30 17:31:41 +02:00
Óscar González Fernández
6aa76be16f ItEr18S09CUCreacionProxectoPlanificacionItEr17S10: Showing popup for splitting hours. 2009-07-30 17:28:29 +02:00
Fernando Bellas Permuy
2601e38372 Added IGenericDao::reattachUnmodifiedEntity + IGenericDao's JavaDoc improved.
reattachUnmodifiedEntity method has been added to IGenericDao and its implementation to allow for reattachment of unmodified entities. Furthermore, IGenericDao's JavaDoc has been improved.
2009-07-30 17:11:50 +02:00
Diego Pino Garcia
4fdd78604e ItEr19S10CUIntroducionPartesTraballoManualmenteItEr18S11: [Fix bug] Find OrderElement by code 2009-07-30 16:57:30 +02:00
Diego Pino Garcia
f5316e0882 ItEr19S10CUIntroducionPartesTraballoManualmenteItEr18S11 [Fix bug] Show distinguished code for OrderElement 2009-07-30 16:06:28 +02:00
Óscar González Fernández
1978d7a52b ItEr18S09CUCreacionProxectoPlanificacionItEr17S10.
Avoiding errors at save after saving.

>From 5394a742bbcf6676d6c751c73bafe69545fc54a8 Mon Sep 17 00:00:00 2001
From: =?utf-8?q?=C3=93scar=20Gonz=C3=A1lez=20Fern=C3=A1ndez?= <ogonzalez@igalia.com>
Date: Tue, 28 Jul 2009 20:17:49 +0200
Subject: [PATCH] ItEr18S09CUCreacionProxectoPlanificacionItEr17S10: Avoiding error when saving after doing some merges.
2009-07-30 13:36:17 +02:00
Manuel Rego Casasnovas
82c4e86dae ItEr19S15ProbasModuloRecursosItEr14S12: Modified OrderLine creation method in order to create default HoursGroup without fixed percentage.
* navalplanner-webapp/src/main/java/org/navalplanner/web/orders/OrderElementTreeModel.java:
	* navalplanner-business/src/main/java/org/navalplanner/business/orders/entities/OrderLine.java:
	Renamed method "createOrderLineWithUnfixedHours" to "createOrderLineWithUnfixedPercentage".
	(updateHoursGroups) Fixed problem with HoursGroup no fixed with 0 hours.
	* navalplanner-business/src/test/java/org/navalplanner/business/test/orders/entities/OrderLineTest.java:
	(testSetWorkHoursHoursGroupNoFixedZeroValue) Added new test to check a case with two HoursGroup with 0 hours.
2009-07-30 13:19:19 +02:00
Manuel Rego Casasnovas
3b705a8fc8 ItEr19S15ProbasModuloRecursosItEr14S12: Added message when Scheluding is saved.
* navalplanner-webapp/src/main/java/org/navalplanner/web/planner/SaveCommand.java:
	(doAction) Showed a Messagebox when save.
2009-07-30 12:40:27 +02:00