Hi,

To help other developers the needed example-code for the 
PersistentDateTimeTZ should be added to 
http://joda-time.sourceforge.net/contrib/hibernate/userguide.html.

import org.hibernate.annotations.Columns;
import org.hibernate.annotations.Type;
import org.joda.time.DateTime;
import javax.persistence.Column;

    
@Columns(column...@column(name="startTime"),@Column(name="startTimezone")})
    @Type(type="org.joda.time.contrib.hibernate.PersistentDateTimeTZ")
    DateTime start;

Thanks
Jens

------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge  
This is your chance to win up to $100,000 in prizes! For a limited time, 
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize  
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
Joda-interest mailing list
Joda-interest@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/joda-interest

Reply via email to