Antlr3 / JDK 1.5
by Steve Ebersole
I am working wth Alexandre Porcelli on some major changes to the HQL
translators. Since the changes are drastic we decided to move from
Antlr2 to Antlr3 in the process as Antlr3 offers many benefits over
Antlr2.
The only concern I have with the move to Antlr3 is the fact that Antlr3
only works with JDK 1.5+. I had planned on incorporating this work into
Hibernate 3.5. The obvious question being the corresponding JDK move
for Hibernate users migrating to 3.5.
Anyone have strong reasons to not do this move in the 3.5 timeframe?
--
Steve Ebersole <steve(a)hibernate.org>
Hibernate.org
15 years, 7 months
Search: Dynamic Document boosting
by Sanne Grinovero
Hello,
I'm currently needing to be able to define a per-entity INSTANCE
different Boost, not just the type.
Currently I could obtain this functionality by using a custom
classbridge, but the entity is quite complex and building my own
classbridge I will have to map all fields myself loosing the
flexibility of annotations for the current type and
all @IndexedEmbedded.
I'd like to add a new parameter to @Boost; currently it has a float
mandatory value,
I'd like to add a new parameter:
Class<BoostScorer> impl();
where BoostScorer is an interface having something like
public float score(Object value);
The annotation would default to an implementation returning constant 1.0f.
This would have an interaction with the existing "value" parameter:
IMHO they should
multiply each other, so I'd change the existing value to also have a
default of 1.0f
and people might want to change one or both values.
Setting both values might be useful to reuse the same impl on
different types/fields
and still be able to statically scale the result from the
score(Object) function, without having to
rewrite a new implementation.
What do you think?
Sanne
15 years, 7 months
Dialect support for SQL comments.
by Daniel Bell
Hi,
I have recently tried turning on SQL comments in hibernate 3.2.6.ga.
However, I found that our database (informix 7.31) did not support SQL
where the comment was at the start of the comment. Instead, the comment
needed to be after the SQL. For example:
/* not accepted by informix 7.31*/ select * from systables;
select * from systables /* accepted by informix 7.31*/
Because of this, I have added a method to the Dialect for adding comments:
/**
* Add a comment to the SQL string.
*
* @param sql StringBuffer holding the SQL.
* @param comment Comment to add to the SQL. May be null.
*/
public void addCommentToSql(StringBuffer sql, String comment) {
if (StringHelper.isNotEmpty(comment))
sql.insert(0, "/* " + comment + " */ ");
}
Thus, the default implementation provides the same functionality as
before. However, derived Dialects may override this method to add the
comment in a different location.
It is also possible to add additional comments in the derived Dialect.
In our case, we also add the Java thread ID.
I have included a complete patch for this change for hibernate 3.2.6.GA.
Please consider its inclusion in Hibernate.
Thanks,
Daniel.
15 years, 7 months
what's going on jboss.org???
by Elhanan Maayan
this is getting absurd, it's a been a week now, and the site is down
compeletly ,
i'm searching for a problem we've been having about opening multiple XA Data
sources for oracle, (opening the second hands jboss and throws an meta-aware
exception, this happens in jboss 4.2)
all the issues that relate to this problem found in google are in
jboss.orgwhich i cannot enter.
15 years, 8 months
hibernate.org
by Hardy Ferentschik
Hi,
Are there any news regarding hibernate.org?
What happened? What's going on?
--Hardy
15 years, 8 months
Hibernate EntityManager reusing MC facilities
by Emmanuel Bernard
I have been chatting with Ales and here is the contract that HEM could
rely on to scan entities and DD files.
Context:
An EntityManagerFactory (EMF) is bootstrapped by the container by
passing a PersistenceUnitInfo class
http://anonsvn.jboss.org/repos/hibernate/jpa-api/trunk/src/main/java/java...
Which gives:
- the root URL of the PU
- the mapping files
- the URLs of the jars to scan
The container will also pass the MC discovery contract implementation
in the contextual Map.
If this impl is available in the Map, HEM will go use the MC
facilities, if not, it will rely on it's own legacy infrastructure.
Here is a proposal for the contract
/**
* return all packages in the jar matching one of these annotations
* if annotationsToLookFor is empty, return all packages
*/
Set<Package> getPackagesInJar(URL jartoScan, List<Annotation>
annotationsToLookFor);
/**
* return all classes in the jar matching one of these annotations
* if annotationsToLookFor is empty, return all classes
*/
Set<Class<?>> getClassesInJar(URL jartoScan, List<Annotation>
annotationsToLookFor);
/**
* return all files in the jar matching one of these file names
* if filePatterns is empty, return all files
* eg **/*.hbm.xml, META-INF/orm.xml
*/
Set<[structure containing file name + InputStream]> getFilesInJar(URL
jartoScan, List<String> filePatterns);
Optional contract but would be nice to have:
/**
* return all files in the classpath (ie PU visibility) matching one
of these file names
* if filePatterns is empty, return all files
* the use case is really exact file name.
*/
Set<[structure containing file name + InputStream]>
getFilesInClasspath(URL jartoScan, List<String> filePatterns);
/** return the unqualified JAR name ie customer-model.jar or store.war
*/
String getUnqualifiedJarName(URL);
15 years, 8 months
Re: [hibernate-dev] want to join hibernate development community
by joy deep
Hi,
Is there any SVN repository from where I can download the source codes, and set up my project in eclipse .Can you also give the Bugzilla link for hibernate.I want to get my feet wet with the code soon . Thanks for replying.
Thanks and Regards Joydeep Bhattacharjee
--- On Tue, 14/4/09, Peter Harrison <peter.harrison(a)methodmaker.co.nz> wrote:
From: Peter Harrison <peter.harrison(a)methodmaker.co.nz>
Subject: Re: [hibernate-dev] want to join hibernate development community
To: bha_joy(a)yahoo.co.in
Date: Tuesday, 14 April, 2009, 5:02 AM
The ideal way to get involved is to download the source and get familiar with it first - if you have not already. I am here because I made some modifications to hibernate for my own project and want to contribute back. The best way to start is to look at existing bug reports, write a patch or two and attach them to the ticket. Of course, I'm in a similar boat as you, in that I'm not an active committer right now. I'm personally looking at issues which affect me - aka I don't want to be committing code for things that I am not having practical use for.
2009/4/12 <bha_joy(a)yahoo.co.in>
Hi All,
I am new to hibernate development community though
I have been using the the product for some time now , I would like to
be a part of this wonderful product how can I get on with it .
Any help in this regard will be highly appreciated.
Add more friends to your messenger and enjoy! Go to http://messenger.yahoo.com/invite/
15 years, 8 months