peter_backlund
ce5373bc2d
Remapped persistent classes using XML metadata instead of annotations.
18 lat temu
peter_backlund
a7a7995b64
Package description files everywhere, mostly placeholders yet.
18 lat temu
peter_backlund
f2117671d3
Introduced interfaces for entity, value object and domain event, extracted from the sameIdentityAs/sameValueAs/sameEventAs methods
18 lat temu
peter_backlund
a866c08dc5
Eliminated RoutingCommand, using itnerary DTOs directly in the view.
18 lat temu
peter_backlund
056fa76c1f
Renamed Specification to RouteSpecification, added origin/destination properties.
18 lat temu
peter_backlund
0eda143206
Modified DeliveryHistory to be immutable and filled with handling events at (Cargo) load time.
Implemented orphan delete of the old itinerary when a new itinerary is attached to a cargo.
18 lat temu
peter_backlund
4be34e0f89
Added fromDTO to ItineraryCandidateDTOAssembler, using that in CargoServiceImpl.
18 lat temu
peter_backlund
c376b77be7
Improved testing of persisting Cargo, in preparation for switching mapping metadata type from annotations to XML.
18 lat temu
peter_backlund
8122211be7
Implemented sameValueAs, equals and hashCode for DeliveryHistory as a value object.
18 lat temu
peter_backlund
1bc5502de9
Removed reference to logfile apender
18 lat temu
Jesper Hammarbäck
990f506572
Added unit test for ItineraryCandidateDTOAssembler.
Changed the addEvent mentod of CargoTrackingDTO to take strings instead of a DTO.
Optimized imports.
18 lat temu
Jesper Hammarbäck
e91589ab4e
Added unit test for CargoRoutingDTOAssembler.
18 lat temu
Jesper Hammarbäck
be4f41598e
Extracted DTO assembling code to separate classes.
18 lat temu
Jesper Hammarbäck
07e2bd6139
Added Checkstyle configuration file that checks the sun coding conventions.
Misc CheckStyle fixes.
Removed magic numbers from HashCodeBuilder.
Created a separate sub package for DTO assemblers.
Minor refactorings to increase readability.
18 lat temu
Jesper Hammarbäck
bdd8e56e44
Reset to default Tomcat port, 8080.
18 lat temu
Jesper Hammarbäck
06dc6f1f8c
Moved 'app.properties' into resources, i.e. classpath root.
18 lat temu
Jesper Hammarbäck
1bd610bb42
Added CheckStyle report generation.
18 lat temu
peter_backlund
b70480b07a
Leg now related to CarrierMovement.
Started work on external DTO assembler.
Package-level javadoc effort begun.
Better timestamps in sample cargo data.
18 lat temu
peter_backlund
5e27b4d272
Use UnLocode in CargoService.shippingLocations signature
18 lat temu
peter_backlund
ce9f0f97a8
Big slew of changes (too big) leading up to draft presentation:
Removed unneeded constructors in Cargo and UnLocode.
Fixed spelling error in StatusCode - "e before i except after c", or whatever that was :-)
Cascade Itinerary/Leg on Cargo persist.
Cargo registration and routing web administration interface.
Better randomization in RoutingServiceImpl.
Replaced more test locations with the SampleLocations instances.
18 lat temu
jorgen_falk
e7de933664
Added app.properties outside the jar package to be able to set wsdl url after mvn assembly:assembly
18 lat temu
peter_backlund
da0b6a059c
Added CargoService.registerNew, which assigns a tracking id to a cargo and stores it.
Reorganized JSP views slightly.
18 lat temu
peter_backlund
c0a5de29c5
Implemented a very efficient, randomized, routing service.
18 lat temu
peter_backlund
d02d1234a8
Implemented notification on cargo unload at final destination.
18 lat temu
peter_backlund
d70a69a3b5
Persisted Itinerary and Leg, with sample data and mapping.
Introduced Itinerary.EMPTY_ITINERARY to represent an emtpy itinerary (null object pattern)
Added capability to display expected/misdirected status of cargo and events to web tracking interface (jsp, DTOs, etc)
Location constructor now only has package-level visibility, and test code uses static location instances.
Rewrote UN Locode import to use straight JDBC access.
18 lat temu
peter_backlund
7e27792616
Added a style for notification box
18 lat temu
peter_backlund
41b463fa66
Added a few icons
18 lat temu
peter_backlund
0757785b7c
Added Cobertura test coverage report
18 lat temu
Patrik Fredriksson
b4eea230e8
Fixed failing test.
18 lat temu
peter_backlund
b796385d36
Compilation fix.
18 lat temu
peter_backlund
073216ef18
Updated status code enum to fix compilation error.
18 lat temu
peter_backlund
0879b5b076
Removed out-of-date comment
18 lat temu
peter_backlund
e09a8daa7b
Tried to make the domain classes more internally consistent and created test classes for those domain classes that didn't have one.
18 lat temu
Patrik Fredriksson
497da164a5
Fixed bug, cargo without any handling events is not misdirected (thi scase previously caused NPE).
18 lat temu
peter_backlund
4d94406f1e
Added asynchronous event emission whenever a handling event is registered, so that interested parties can be notified if a cargo is misdirected (is unloaded, is late, has arrived, or whatever).
Two different implementations a available: JMS and a simple thread-based one.
Also, the cargo service track method now uses TrackingId in the signature, for consistency.
18 lat temu
peter_backlund
9d0e0c1e28
Cargo is never misdirected if there's no itinerary (null check)
18 lat temu
Patrik Fredriksson
44288c0b30
Refactored identities.
Entities have the method sameValueAs(otherEntity)
Value Objects have the method sameIdentiyAs(otherValueObject)
Events have the method sameEventAs(otherEvent)
18 lat temu
Patrik Fredriksson
4bb12bf2a4
Minor clean-up.
18 lat temu
Patrik Fredriksson
ba5922bff2
Implemented Cargo.isMisdirected()
18 lat temu
Patrik Fredriksson
0f6b3ee342
Fixed trimming.
18 lat temu
Patrik Fredriksson
b4d32bde50
Implemented initial misdirected logic. Carg.isMisdirected() still needs more work.
18 lat temu
peter_backlund
835276ab6b
Improved comment on rationale behind the removed relation between DeliveryHistory and HandlingEvent.
18 lat temu
peter_backlund
6e66db1fd3
Removed the OR-mapped relation between DeliveryHistory and HandlingEvent, making DH a transient object. DH is populated by a repository call.
18 lat temu
peter_backlund
34968c4798
Removed empty test
18 lat temu
peter_backlund
2972ae0f44
Moved enum and logic into the domain model.
18 lat temu
peter_backlund
c39ac98777
Improved CargoWithHistoryDTO, added message resource bundling
18 lat temu
jorgen_falk
60829c7c82
Added mandatory text field validator to location
18 lat temu
peter_backlund
1b09a4066f
Fixed a few broken JAX-WS-related dependencies in the POM.
18 lat temu
peter_backlund
7613908c1e
Failing scenario test for a routing service, with a few added skeleton interfaces, domain classes and methods.
18 lat temu
peter_backlund
e1f739c4f9
Use a proper Hibernate configuration file.
18 lat temu