Archiv für Kategorie Allgemein
Neo4j Example written in Scala
I just converted the little Neo4j example (coming with the distribution) . The most tricky thing was the RelationshipType Enumeration (A more complex one-file-wrapper is here) [UPDATE] code changed to be a little more Scala like, by using a implicit conversion for Enumeration and a transaction wrapper [UPDATE] object RelTypes extends Enumeration { type RelTypes [...]
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 [...]
Scala Entity and JPAExtension Examples (JPA 2.0)
I am using: a Mapped Superclass for all basic entities (MIPEntity) a pre persist entity listener to change some values the following hierarchy: MIPEntity . . . // do something with oi } withQuery (filter) Apply function on entity got by find (BigInteger as primary key). Type is inferred by oi: ObjectItem again: findAndApply(id) { [...]
JPA For Scala
JPAExtension (JPA for Scala, ORM for Scala) should: be fully JPA 2.0 compliant Persistence Layer and Object Relational Mapper (ORM) for Scala perfectly replace the Java API with Scala Collections and other niceties support Transaction Scope Wrappers with Scalas Functional Programming abilities JPAExtension is hosted on Github Related Artikel are: Constructor Arguments with JPA-Annotations Relations [...]
Circuit-Breaker for Scala
I posted my Scala Implementation of the Circuit Breaker state machine mentioned in the book Release It at github. I used the GoF State Machine pattern (like Ken DeLong), implemented it in Scala and added some factory stuff. Use it like this ?View Code SCALA1 2 3 4 5 6 7 8 9 10 11 [...]
QFTest Scripting, VMWare and Hudson Part II
This is the follow up to QFTest Scripting, VMWare and Hudson. Main entry target uitest finds all the checked out QF test projects: executeUITest iterates over all .qft files: qftest executes the bash script posted in part I and verifies the test result. verifyTestResults checks wether the test has found errors or not.

Twitter
Xing
Facebook