-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: need xml to annotation tutorial
PostPosted: Wed Jul 04, 2007 12:57 pm 
Beginner
Beginner

Joined: Tue Jul 03, 2007 11:36 am
Posts: 24
1)Where can i find the xml to annotation tutorial because i used to code xml?

2)The following is the xml setting. How it look like in annotation. How to set lazy attribute for class with annotion? I do not want to lazy load that particular object when entitymanager.load(clazz, pk) is invoked.

<class
name="ClassName" (1)
table="tableName" (2)
discriminator-value="discriminator_value" (3)
mutable="true|false" (4)
schema="owner" (5)
catalog="catalog" (6)
proxy="ProxyInterface" (7)
dynamic-update="true|false" (8)
dynamic-insert="true|false" (9)
select-before-update="true|false" (10)
polymorphism="implicit|explicit" (11)
where="arbitrary sql where condition" (12)
persister="PersisterClass" (13)
batch-size="N" (14)
optimistic-lock="none|version|dirty|all" (15)
lazy="true|false" (16)
entity-name="EntityName" (17)
check="arbitrary sql check condition" (18)
rowid="rowid" (19)
subselect="SQL expression" (20)
abstract="true|false" (21)
entity-name="EntityName" (22)
node="element-name" (23)
/>


Top
 Profile  
 
 Post subject: I'd like that too
PostPosted: Wed Aug 29, 2007 12:53 pm 
Newbie

Joined: Sun Oct 30, 2005 2:38 pm
Posts: 9
Location: Goodyear, AZ
I agree. An "XML to Annotation Migration Guide" would be extremely helpful. Something that maps all possible XML elements and attributes to their corresponding JPA or Hibernate annotations and values.

- Eric


Top
 Profile  
 
 Post subject: Re: I'd like that too
PostPosted: Thu Aug 30, 2007 5:25 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
cybermac912 wrote:
I agree. An "XML to Annotation Migration Guide" would be extremely helpful. Something that maps all possible XML elements and attributes to their corresponding JPA or Hibernate annotations and values.

- Eric


Java Persistence with Hibernate, the book, does that. Otherwise, contributions welcome :)

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.