-->
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: hibernate reverse engineering to include a @Transient
PostPosted: Tue Apr 19, 2011 5:23 am 
Newbie

Joined: Tue Nov 25, 2008 10:23 pm
Posts: 2
Hi all, I am trying to include following

Code:
private org.springframework.web.multipart.commons.CommonsMultipartFile photo;


    @Transient
    public CommonsMultipartFile getPhoto() {
        return photo;
    }

    public void setPhoto(CommonsMultipartFile photo) {
        this.photo = photo;
    }



in my pojo class generated from database table.

I have studied to find there is a way to mention extra class code in meta tag like following

http://www.scribd.com/doc/23123635/30/G ... ng-process

but this does not allow to add property variable photo.

Please suggest a way how can I do it in reveng.xml so that this code is included on every run of hbm2java.

Thanks in advance!


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.