Technical Management
Poor managers create the illusion of productivity through busy-ness. Average managers finish work (but not always the right work) Great managers accomplish goals and develop people You can’t spend too much time with people Don’t offer help if you can’t deliver Skills are only one part of success See the work with big visible charts [...]
Command Pattern / Scala / AOP
Please read Cross Cutting Concerns in Scala as well. Assumption: We have a JAX-RS (REST) resource and a updateUserInfo service located at the URL . . ./UserInfo. Every call to this service requires a database transaction that is “manually” created. The question is: How do we handle this transaction scope (and how do we handle [...]
Cross Cutting Concerns in Scala
Although we can use powerful functional and object oriented languages like Scala, I think that Aspect Oriented Programming (AOP) is still one important part of software development. This article should show how easy to use AOP is. I can not write a better definition of CCC than: The Art of Separation of Concerns CCC on [...]
Constructor Arguments with JPA-Annotations
Scala provides the possibility to define constructor argument that are class properties as well. I recoded the entity OrganisationAssociation to use j__organisations as argument. The example entity from my post Relations with Scala Collections and JPA looks like this: @Entity @Table(name = “org_assoc”) @SequenceGenerator(name = “org_assoc_id_seq”, sequenceName = “org_assoc_id_sequence”) class OrganisationAssociation extends MIPEntity { @Id [...]
Relations with Scala Collections and JPA
Java Collection JPA’s One to Many and Many to Many relations require an attribute of type java.util.Collection like it is shown in the next example. This will be normally a List interface and a ArrayList implementation. … @OneToMany public Collection organisations = new ArrayList() … Unfortunately the Scala Library has a different interface concept that [...]
