Quantcast
Channel: Spring
Browsing all 40 articles
Browse latest View live

By: Donal

@Peter I eventually realised that I need to do my persistence using the JPA EntityManager rather than Hibernate. Based on some of your previous remarks, I should use the GORM-JPA plugin. However,...

View Article



By: Peter Ledbrook

@Donal It's only been tested with JPA 1.0. Even if it works with JPA 2.0, you still won't get criteria queries until the plugin has been updated. Hope that helps.

View Article

By: Donal

@Peter – thanks I'll see if I can get it working with JPA 2.0 and post the results here. Do you know if you can use GORM constraints (in the manner described above) when using JPA directly, i.e. with...

View Article

By: Peter Ledbrook

@Donal GORM constraints are supported by the old plugin, but apparently not very well. Graeme has been working recently on the new one though, and it's apparently passing the GORM TCK. That will allow...

View Article

By: Martin Homik

How do you unit test constraints in this scenario? I tried "mockForConstraintsTests", but Grails seems not to add the constraints to the domain class such that validation always returns 'true'. Any idea?

View Article


By: Peter Ledbrook

@Martin I'm afraid unit tests won't work here, even in Grails 2.0. You will have to write integration tests. Fortunately, the improved interactive mode in Grails 2.0 will make repeated execution of...

View Article

By: Myong Chong

@Peter Is there a tool or easy way to convert Hibernate mapped models to GORM models? I would like to take advantage of my existing Hibernate models (without re-writing them to GORM models by hand) but...

View Article

By: Peter Ledbrook

@Myong The only approach I can think of is to use the Reverse Engineer plugin to build the GORM model from the database schema: http://grails.org/plugin/db-reverse-engineer

View Article


By: ew

Hi, cool article, Im also reusing a java hibernate model in a grails app. I've solved most issues but have problem with grails not figuring out that a column is called 'userId'. The generated sql shows...

View Article


By: ew

solved this thanks to the forums the way to do it is with the following in DataSource.groovy: hibernate { … naming_strategy = org.hibernate.cfg.DefaultNamingStrategy }

View Article

By: RobertO

Thanks for this article. Has anyone successfully Java annotated objects and Grails Domain objects? I have an existing model that uses Java/Hibernate and annotations. I am writing a new application that...

View Article

This Week in Spring - Aug 6th, 2013

Welcome back to another installment of This Week in Spring. On August 1, I celebrated my third year at SpringSource. I continue to enjoy the ride of my life and a huge part of that is my interaction...

View Article

SpringSource Training Schedule: September 2013

If you are a Java developer looking to increase your Spring knowledge, Spring Training by Pivotal is the place to start. We are providing several Spring trainings across the globe closely connected to...

View Article


This Week in Spring - Aug 13th, 2013

Welcome back to another installment of This Week in Spring. As usual, we've got a lot to cover, so let's get to it!The How to do in Java blog has a nice post on how to setup Siteminder...

View Article

Spring XD 1.0 Milestone 2 Released

Today we are pleased to announce the 1.0 M2 release of Spring XD (download)  Spring XD is a unified, distributed, and extensible system for data ingestion, real time analytics, batch processing, and...

View Article


Spring Security 3.2.0.RC1 Released

Spring Security 3.2.0.RC1 is now available from the SpringSource repository at http://repo.springsource.org. See here for a quick tutorial on resolving these artifacts via Maven.This release includes...

View Article

Spring Security 3.2.0.RC1 Highlights: CSRF Protection

On Monday I announced the release of Spring Security 3.2.0.RC1. This is the first of a two part blog series going over the new features found in Spring Security 3.2.0.RC1.In this first entry, I will go...

View Article


Image may be NSFW.
Clik here to view.

Free Spring - Hadoop Conference in Singapore

We are glad to announce that we will host a FREE conference about Spring and Hadoop on Friday August 30th in downtown Singapore from 6 to 8 PM. Spring best practices: from Spring Petclinic to Spring...

View Article

Spring Batch 3.0 Milestone 1 Released

Today we are pleased to announce the first milestone release towards Spring Batch 3.0 (download). With this release we take our first steps towards implementing the JSR-352 Java Batch specification....

View Article

Spring Data Redis 1.1 RC1 Released

Dear Spring Community,I am pleased to announce the first release candidate of Spring Data Redis 1.1!Downloads | JavaDocs | Reference Documentation | ChangelogHighlights include:Support for millisecond...

View Article
Browsing all 40 articles
Browse latest View live




Latest Images