-->
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.  [ 1 post ] 
Author Message
 Post subject: Component Mapping
PostPosted: Mon Aug 27, 2007 11:23 am 
Beginner
Beginner

Joined: Wed Jul 18, 2007 6:13 am
Posts: 28
Hallo

Wie kann ich die eingebetteten Attribute von der Klasse Test1 in der Klasse Test2 überschreiben?

@Embeddable
public class TEST1 implements Serializable {

@Embedded
@Target(XYZ.class)
@AttributeOverrides( {
@AttributeOverride(name = "element", column = @Column(name = "ABSCHN_VON_LOK_ELEMENT")),
@AttributeOverride(name = "seitenZaehler", column = @Column(name = "ABSCHN_VON_LOK_SEITE")),
@AttributeOverride(name = "takeZaehler", column = @Column(name = "ABSCHN_VON_LOK_TAKE")) })
private Lokalisierung vonLokalisierung;


Mein Lösungsansatz, funktioniert aber nicht :-(

public class TEST2 implements Serializable {

@Embedded
@Target(TEST1.class)
@AttributeOverrides( {
@AttributeOverride(name = "element", column = @Column(name = "KREA_ABSCHN_VON_LOK_ELEMENT")),
@AttributeOverride(name = "seitenZaehler", column = @Column(name = "KREA_ABSCHN_VON_LOK_SEITE")),
@AttributeOverride(name = "takeZaehler", column = @Column(name = "KREA_ABSCHN_VON_LOK_TAKE")) })
private Abschnitt kreationsAbschnitt;


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.