-->
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.  [ 4 posts ] 
Author Message
 Post subject: hibernate search (general question on xml format)
PostPosted: Sun Jun 08, 2008 2:00 am 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
I currently know hibernate search uses 3.0.1. GA uses annotation. However I generally think from architechure perspective it is better to put these kind of configuration in xml. I want to keep my domain object (clean and readable).

So i have three question.

1.) What was the benefit of putting it using annotations?

2.) Will their be future release using xml setting?

* added *
3.) How come 3.0.1 GA is in jboss repsoistory but not in maven main ibiblo ?
Thanks


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 08, 2008 4:04 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,

Quote:
1.) What was the benefit of putting it using annotations?

I think it is just about taste; personally I like the annotations most as they are quite synthetic and don't pollute the domain object too much; also it becomes part of it, it is IMHO more unreadable to have to open several files to understand how the model looks like. Just a personal view; Also I think people looking at your model could forget about the fulltext options in a separated xml file and make inappropriate changes. It is more focus-oriented: when you need to change the model the source file contains everything you have to read, instead of having information scattered around;-)

Quote:
2.) Will their be future release using xml setting?

Everybody agrees it would be nice to have the possibility to use xml too and have it override the annotations; many have volunteered to code it but have disappeared.

Quote:
3.) How come 3.0.1 GA is in jboss repsoistory but not in maven main ibiblo ?

Maven support is work in progress...

P.S. I'm not one of the experts who designed it, I just happen to know the answer for 2 and 3; 1 is personal.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Sun Jun 08, 2008 4:04 am 
Hibernate Team
Hibernate Team

Joined: Fri Oct 05, 2007 4:47 pm
Posts: 2536
Location: Third rock from the Sun
Hello,

Quote:
1.) What was the benefit of putting it using annotations?

I think it is just about taste; personally I like the annotations most as they are quite synthetic and don't pollute the domain object too much; also it becomes part of it, it is IMHO more unreadable to have to open several files to understand how the model looks like. Just a personal view; Also I think people looking at your model could forget about the fulltext options in a separated xml file and make inappropriate changes. It is more focus-oriented: when you need to change the model the source file contains everything you have to read, instead of having information scattered around;-)

Quote:
2.) Will their be future release using xml setting?

Everybody agrees it would be nice to have the possibility to use xml too and have it override the annotations; many have volunteered to code it but have disappeared.

Quote:
3.) How come 3.0.1 GA is in jboss repsoistory but not in maven main ibiblo ?

Maven support is work in progress...

P.S. I'm not one of the experts who designed it, I just happen to know the answer for 2 and 3; 1 is personal.

_________________
Sanne
http://in.relation.to/


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 11, 2008 10:07 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
http://www.hibernate.org/443.html

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.