Scaffolding Java Domain Classes mapped With JPA annotations ?

View: New views
3 Messages — Rating Filter:   Alert me  

Scaffolding Java Domain Classes mapped With JPA annotations ?

by someone127 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi all,

I'd like to know if it's possible to scaffold Java classes mapped With JPA annotations (and not hibernate)?
Do the plugins "gorm-jpa" and "jpa plugin" make that possible ?

Thanks in advance.

Re: Scaffolding Java Domain Classes mapped With JPA annotations ?

by Graeme Rocher-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yeah should be possible with gorm-jpa, although haven't tried it. Just
set up your EntityManager then run

grails generate-all [CLASS_NAME]

GORM-JPA API is roughly the same as the Hibernate API so it should just work

Cheers

On Mon, Jun 22, 2009 at 5:26 PM, someone127<leito127@...> wrote:

>
> Hi all,
>
> I'd like to know if it's possible to scaffold Java classes mapped With JPA
> annotations (and not hibernate)?
> Do the plugins "gorm-jpa" and "jpa plugin" make that possible ?
>
> Thanks in advance.
> --
> View this message in context: http://www.nabble.com/Scaffolding-Java-Domain-Classes-mapped-With-JPA-annotations---tp24150720p24150720.html
> Sent from the grails - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email



Re: Scaffolding Java Domain Classes mapped With JPA annotations ?

by someone127 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Graeme

Thanks for the quick reply. I've tried to do that but i'm still having exceptions.

Can you show us please how to set the EntityManager and the JpaTransactionManager beans (I'm a spring noob ^^)

Thanks

Graeme Rocher-3 wrote:
Yeah should be possible with gorm-jpa, although haven't tried it. Just
set up your EntityManager then run

grails generate-all [CLASS_NAME]

GORM-JPA API is roughly the same as the Hibernate API so it should just work

Cheers

On Mon, Jun 22, 2009 at 5:26 PM, someone127<leito127@hotmail.fr> wrote:
>
> Hi all,
>
> I'd like to know if it's possible to scaffold Java classes mapped With JPA
> annotations (and not hibernate)?
> Do the plugins "gorm-jpa" and "jpa plugin" make that possible ?
>
> Thanks in advance.
> --
> View this message in context: http://www.nabble.com/Scaffolding-Java-Domain-Classes-mapped-With-JPA-annotations---tp24150720p24150720.html
> Sent from the grails - dev mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>
>



--
Graeme Rocher
Head of Grails Development
SpringSource - Weapons for the War on Java Complexity
http://www.springsource.com

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email