Never mind... It started working all of a sudden.
Sorry for the bandwidth,
Richard
Richard Brewster wrote:
>
> I created an Embeddable class with one field:
>
> @Embeddable
> public class SimpleDate extends BaseObject implements Serializable {
>
> private GregorianCalendar calendar;
>
> @Column()
> public GregorianCalendar getCalendar() {
> return calendar;
> }
>
> Lots of domain logic here...
> }
>
> Then I embed an object of SimpleDate in another persistent class:
>
> @Embedded
> @AttributeOverrides({
> @AttributeOverride(name = "calendar", column = @Column(name =
> "DATE_VALUE"))
> })
> private SimpleDate dateValue; // Date with no time part.
>
>
> The problem is that hbmtoddl and the Hibernate runtime ignores this and
> expects the column to be named "calendar" instead of "DATE_VALUE".
>
> I need to embed a lot of objects of this type in this and other persistent
> classes.
>
> I have tried putting the annotation on the field, explicitly naming the
> column "calendar". No difference. I am using JPA Annotations, just like
> AppFuse does. What is wrong?
>
>
> <hibernate.dialect>org.hibernate.dialect.Oracle10gDialect</hibernate.dialect>
>
> <hibernate.annotations.version>3.3.0.ga</hibernate.annotations.version>
> <hibernate.version>3.2.5.ga</hibernate.version>
>
> TIA
>
> Richard
>
>
>
>
--
View this message in context:
http://www.nabble.com/AttributeOverrides-does-not-work-with-Oracle-10g-tf4550841s2369.html#a12987908
Sent from the AppFuse - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]