-->
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: Modify superclass content in derived class using orm.xml
PostPosted: Fri Mar 04, 2011 3:41 am 
Newbie

Joined: Thu Mar 03, 2011 1:17 pm
Posts: 1
Hi Friends,


I have one AbstractAbc class as:

public abstract class AbstractAbc<E extends AbstractAbc<E, PK, DAO>, PK extends Serializable, DAO extends IBaseDao<E, PK>> implements Serializable {

private static final Logger LOGGER = Logger.getLogger(AbstractAbc.class);

private transient DAO dao;

@Id
private PK id;
private String description;
private String name;

//setter
.....
.....

// getter
.......
....
}


I'm extending AbstractAbc in my derived class as follows:

public class Pqr extends AbstractAbc<Pqr, String, IPqr> {

public Pqr() {
super();
}
}



When database is created at the time i want to prevent "description" to create column in database in Pqr table.

Here to prevent creation of column I want to use orm.xml

Can you please help me for this.

Thanks in Advanced.


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.