Java Code Geeks » Maciej Walkowiak http://www.javacodegeeks.com/ Java 2 Java Developers Resource Center Fri, 06 Mar 2015 11:00:19 +0000 en-US hourly 1 http://wordpress.org/?v=4.1.1 Code faster with Intellij IDEA live templateshttp://www.javacodegeeks.com/2014/01/code-faster-with-intellij-idea-live-templates.html http://www.javacodegeeks.com/2014/01/code-faster-with-intellij-idea-live-templates.html#comments Tue, 28 Jan 2014 14:00:54 +0000 http://www.javacodegeeks.com/?p=20794 Intellij IDEA – in my opinion the most productive IDE for Java – comes with bunch of features helping getting rid of writing repetitive code – which is a everyday business no matter what language you use. One of them is live templates. Live templates contain predefined code fragments. You can use them to insert […]

 

]]>
http://www.javacodegeeks.com/2014/01/code-faster-with-intellij-idea-live-templates.html/feed/ 5
Spring Boot – foundation for modern Java applicationhttp://www.javacodegeeks.com/2014/01/spring-boot-foundation-for-modern-java-application.html http://www.javacodegeeks.com/2014/01/spring-boot-foundation-for-modern-java-application.html#comments Tue, 21 Jan 2014 20:00:38 +0000 http://www.javacodegeeks.com/?p=20714 Spring Boot is relatively new project from Spring.io. Its aim is to simplify creating new Spring Framework based projects and unify their configuration by applying some conventions. This approach convention over configuration is already successfully applied in most of so called modern web frameworks like Ruby on Rails, Django or Play! Framework. On the official […]

 

]]>
http://www.javacodegeeks.com/2014/01/spring-boot-foundation-for-modern-java-application.html/feed/ 1
Integration tests with Maven 3, Failsafe and Cargo pluginhttp://www.javacodegeeks.com/2013/12/integration-tests-with-maven-3-failsafe-and-cargo-plugin.html http://www.javacodegeeks.com/2013/12/integration-tests-with-maven-3-failsafe-and-cargo-plugin.html#comments Sun, 01 Dec 2013 13:00:01 +0000 http://www.javacodegeeks.com/?p=19326 Unit testing is available in Maven out of the box. Because of that very often its used for integration tests as well. Major disadvantage of this is that integration tests can take much more time to execute and because no one likes to wait long time every build – tests are just skipped with -Dmaven.test.skip=true […]

 

]]>
http://www.javacodegeeks.com/2013/12/integration-tests-with-maven-3-failsafe-and-cargo-plugin.html/feed/ 0
JBoss Drools unit testing with junit-droolshttp://www.javacodegeeks.com/2013/11/jboss-drools-unit-testing-with-junit-drools.html http://www.javacodegeeks.com/2013/11/jboss-drools-unit-testing-with-junit-drools.html#comments Sat, 30 Nov 2013 17:28:21 +0000 http://www.javacodegeeks.com/?p=19325 Recently I’ve been working with a project heavily using JBoss Drools. I am not Drools expert – I am not also very convinced to this framework, or maybe only to particular use case in this project – and I found it quite difficult to write simple, maintainable unit tests for Drools based business rules. That’s […]

 

]]>
http://www.javacodegeeks.com/2013/11/jboss-drools-unit-testing-with-junit-drools.html/feed/ 0
Spring Data MongoDB cascade save on DBRef objectshttp://www.javacodegeeks.com/2013/11/spring-data-mongodb-cascade-save-on-dbref-objects.html http://www.javacodegeeks.com/2013/11/spring-data-mongodb-cascade-save-on-dbref-objects.html#comments Fri, 29 Nov 2013 11:00:33 +0000 http://www.javacodegeeks.com/?p=19258 Spring Data MongoDB by default does not support cascade operations on referenced objects with @DBRef annotations as reference says: The mapping framework does not handle cascading saves. If you change an Account object that is referenced by a Person object, you must save the Account object separately. Calling save on the Person object will not […]

 

]]>
http://www.javacodegeeks.com/2013/11/spring-data-mongodb-cascade-save-on-dbref-objects.html/feed/ 0
Auditing Entities in Spring Data MongoDBhttp://www.javacodegeeks.com/2013/11/auditing-entities-in-spring-data-mongodb-2.html http://www.javacodegeeks.com/2013/11/auditing-entities-in-spring-data-mongodb-2.html#comments Thu, 28 Nov 2013 08:00:42 +0000 http://www.javacodegeeks.com/?p=19251 Spring Data MongoDB 1.2.0 silently introduced new feature: support for basic auditing. Because you will not find too much about it in official reference in this post I will show what benefits does it bring, how to configure Spring for auditing and how to annotate your documents to make them auditable Auditing let you declaratively […]

 

]]>
http://www.javacodegeeks.com/2013/11/auditing-entities-in-spring-data-mongodb-2.html/feed/ 0
Auditing entities in Spring Data MongoDBhttp://www.javacodegeeks.com/2013/05/auditing-entities-in-spring-data-mongodb.html http://www.javacodegeeks.com/2013/05/auditing-entities-in-spring-data-mongodb.html#comments Tue, 28 May 2013 19:00:34 +0000 http://www.javacodegeeks.com/?p=13270 Spring Data MongoDB 1.2.0 silently introduced new feature: support for basic auditing. Because you will not find too much about it in official reference in this post I will show what benefits does it bring, how to configure Spring for auditing and how to annotate your documents to make them auditable.Auditing let you declaratively tell […]

 

]]>
http://www.javacodegeeks.com/2013/05/auditing-entities-in-spring-data-mongodb.html/feed/ 0
Java code generation with JAnnocessorhttp://www.javacodegeeks.com/2012/08/java-code-generation-with-jannocessor.html http://www.javacodegeeks.com/2012/08/java-code-generation-with-jannocessor.html#comments Thu, 09 Aug 2012 01:00:00 +0000 http://www.javacodegeeks.com/2012/10/java-code-generation-with-jannocessor.html In this article I will show you how to generate code with JAnnocessor framework created by Nikolche Mihajlovski. First time I met JAnnocessor on GeeCON 2012 conference during Nikolche’s speech: “Innovative and Pragmatic Java Source Code Generation” (slides). Afterwards I used it successfully in one of my projects. There are almost no resources about this […]

 

]]>
http://www.javacodegeeks.com/2012/08/java-code-generation-with-jannocessor.html/feed/ 0
Java talking to iOS: Java objects to Apple plist serializationhttp://www.javacodegeeks.com/2012/07/java-talking-to-ios-java-objects-to.html http://www.javacodegeeks.com/2012/07/java-talking-to-ios-java-objects-to.html#comments Sat, 28 Jul 2012 15:00:00 +0000 http://www.javacodegeeks.com/2012/10/java-talking-to-ios-java-objects-to-apple-plist-serialization.html I am happy to announce my first open source project java-plist-serializer that can help you with integrating Java and especially Spring based applications with iOS applications.   Background I am working on project that has Java webapp as a backend and clients are iOS devices. Recently I’ve received task to create Web Service that returns […]

 

]]>
http://www.javacodegeeks.com/2012/07/java-talking-to-ios-java-objects-to.html/feed/ 1
Sorting Spring Data MongoDB collections using @OrderByhttp://www.javacodegeeks.com/2012/07/sorting-spring-data-mongodb-collections.html http://www.javacodegeeks.com/2012/07/sorting-spring-data-mongodb-collections.html#comments Sat, 14 Jul 2012 15:00:00 +0000 http://www.javacodegeeks.com/2012/10/sorting-spring-data-mongodb-collections-using-orderby.html This is already third post about tuning and enhancing Spring Data MongoDB capabilities. This time I found that I miss one JPA feature – @OrderBy annotation. @OrderBy specifies the ordering of the elements of a collection valued association at the point when the association is retrieved. In this article I will show how to implement […]

 

]]>
http://www.javacodegeeks.com/2012/07/sorting-spring-data-mongodb-collections.html/feed/ 0