Commit graph

178 commits

Author SHA1 Message Date
Óscar González Fernández
62f46c73e3 Substituting tabs by spaces at java files in order to follow code conventions. 2009-08-10 12:36:28 +02:00
Óscar González Fernández
b8271ef724 ItEr20S04ArquitecturaServidorItEr19S04: Removing sortByStartDate since by default is sorted that way. 2009-08-09 20:08:27 +02:00
Óscar González Fernández
d9aa8fa13f ItEr20S04ArquitecturaServidorItEr19S04: Removing unused methods and variables. 2009-08-09 20:03:02 +02:00
Óscar González Fernández
b0b60433cf ItEr20S04ArquitecturaServidorItEr19S04: Organizing all imports so warnings are removed. 2009-08-09 19:49:02 +02:00
Óscar González Fernández
5ee30eb5eb ItEr20S04ArquitecturaServidorItEr19S04: Erasing not used methods from Registry. They will be added as needed. 2009-08-09 19:46:31 +02:00
Óscar González Fernández
db7a75fbb0 ItEr20S04ArquitecturaServidorItEr19S04: Erasing PlannerDAORegistry since it's not used. 2009-08-09 19:46:31 +02:00
Óscar González Fernández
efaaccd102 ItEr20S04ArquitecturaServidorItEr19S04: Erasing AdvanceDAORegistry, methods moved to Registry. 2009-08-09 19:46:31 +02:00
Óscar González Fernández
fe5a957f50 ItEr20S04ArquitecturaServidorItEr19S04: Erasing remove method on Resource instance. ResourcesDAORegistry no longer needed. 2009-08-09 19:46:31 +02:00
Óscar González Fernández
078009217b ItEr20S04ArquitecturaServidorItEr19S04: Removing WorkReportsDAORegistry and creating a general Registry intended to replace all Registries. 2009-08-09 19:45:31 +02:00
Óscar González Fernández
c183170dda ItEr20S04ArquitecturaServidorItEr19S04: Copying collection properties instead of returning them directly.
This prevents modifications on the collections properties from outside of the entity.
2009-08-09 18:44:36 +02:00
Óscar González Fernández
118b5a1ef3 ItEr20S04ArquitecturaServidorItEr19S04: Making private some fields that had default access (package access). 2009-08-09 18:34:34 +02:00
Óscar González Fernández
5afa475676 ItEr20S04ArquitecturaServidorItEr19S04: Moving onTransaction method to its own service. 2009-08-07 18:22:23 +02:00
Manuel Rego Casasnovas
acede8c059 ItEr20S04ArquitecturaServidorItEr19S04: Removed OrderService and OrderServiceTest. Created a new OrderModelTest. 2009-08-07 13:39:26 +02:00
Óscar González Fernández
5d0ac6fbe5 ItEr20S04ArquitecturaServidorItEr19S04: Changing ids generator to hilo, so it's portable among databases. 2009-08-06 21:43:37 +02:00
Óscar González Fernández
61f178ee67 ItEr20S04ArquitecturaServidorItEr19S04: Changing data source in order to not use only a single connection.
Using only a single connection causes problems when using ids generation strategies such as hilo that require various simultaneous transactions.
2009-08-06 21:43:31 +02:00
Óscar González Fernández
2ad7043d2b ItEr20S04ArquitecturaServidorItEr19S04: Changing precision field name.
It was causing problems in mysql, since schema exported created a column with the same name and it's a reserved word.
2009-08-06 21:41:38 +02:00
Diego Pino Garcia
3be423e291 ItEr20S08CUProcuraPartesTraballoDadosAltaNoSistemaItEr19S13: [Fix bug] Open WorkReportType form for edit 2009-08-06 20:10:28 +02:00
Manuel Rego Casasnovas
ec7922d4db ItEr20S04ArquitecturaServidorItEr19S04: Removing use of OrderService.
Javier Moran Rua <jmoran@igalia.com>: Some fixings in OrderModel.java
2009-08-06 19:31:15 +02:00
Diego Pino Garcia
6038e312ac ItEr20S08CUProcuraPartesTraballoDadosAltaNoSistemaItEr19S13: Remove WorkReport 2009-08-06 16:49:10 +02:00
Ó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
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
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
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
Manuel Rego Casasnovas
3501d6da85 ItEr20S04ArquitecturaServidorItEr19S04: Removed "*.impl" packages. 2009-08-03 17:00:19 +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