[Hibernate] Hbm2Java and custom-type problem in Hibernate-3/Hib-tools:3.1.0.beta4

2006-06-19 Thread shalon toy
Greetings,
I am in the process of migrating my project code base to Hibernate-3
and having quite trouble with the way hibernate-tool in Hibernate3
work's with the CustomUserType's defined. The version of hibernate
being used is 3.1.3 and hibernate-tools is 3.1.0.beta4

Working version (old):
In Hibernate2, on invocation of hbm2java the following property in my *.hbm.xml
property column=LAST_MODIFIED length=11 name=lastModified
type=com.company.hibernate.usertypes.LastModifiedColumnType
meta attribute=use-in-tostringtrue/meta
meta attribute=default-valuenew java.util.Date()/meta
/property
gets converted to the following
/** nullable persistent field */
protected Date lastModified = new java.util.Date();
which was correct  all the interfaces with setters and getters were
written accordingly.
e.g: public void setLastModified(java.util.Date dt),
public Date getLastModified();

NEW:
In Hibernate-3, on invocation of the new hibernate-tool that wraps
hbm2java, the same snippet from *.hbm.xml results
 protected LastModifiedColumnType lastModified = new java.util.Date();
and hence all the code base breaks on the compile step coz =
found   : com.company.hibernate.usertypes.LastModifiedColumnType
required: java.util.Date

I have several other custom type's and I am not sure how this can be
fixed so that I can reuse my custom type(s). Is this a hibernate-tool
(hbm2java) bug in 3.1.0.beta-4 or is there a right way to accomplish
the same as in HIbernate-2.

Thanks for reading! Appreciate if any one can help.


___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel


[Hibernate] Internal workings of Hibernate Cache

2006-02-14 Thread shalon toy
Does any one know of any document that explains the internals of
hibernate second level cache workings. The hibernate docs do not have
any information on how the default cahce (ehcache) implementation
works. I was looking for some information, that would explain how
hibernate determine's when to do an update/refresh/clear of the
objects that its caching.

Thanks for reading!
-ES


---
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems?  Stop!  Download the new AJAX search engine that makes
searching your log files as easy as surfing the  web.  DOWNLOAD SPLUNK!
http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642
___
hibernate-devel mailing list
hibernate-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/hibernate-devel