-->
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.  [ 8 posts ] 
Author Message
 Post subject: Code Obfuscation
PostPosted: Mon Dec 27, 2004 5:58 pm 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
Hi,

Incase I would want to use Hibernate and also explore obfuscation, it may not work, since the mapping of the class name to the *.hbm.xml would fail. Do i have anyothe option's?

Kindly suggest.

Thanks
Gyanesh


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 6:05 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, configure your obfuscator not to change the class and method names of your data model objects.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 6:06 pm 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
What if I would want the Model names to be obfuscated as well?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Dec 27, 2004 6:19 pm 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Well, you are out of luck, doing this brakes reflection. Perhaps you could use access=field if you want.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 1:20 am 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
Thanks. I was just wondering of there was any other way that could have avoided *.hmb.xml. BUt I guess I need to avoid obfuscating the needed
classes. Thanks!


Top
 Profile  
 
 Post subject:
PostPosted: Tue Dec 28, 2004 5:02 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Try the EJB3 annotations instead of hbm files but I'm not sure your obfuscator handle the JDK 5.0

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Fri Dec 31, 2004 1:32 am 
Beginner
Beginner

Joined: Fri Jun 11, 2004 3:42 am
Posts: 22
Hi,

I have JDK5.0 running and Hibernate 3.0beta1 in as well. I did not see any
documentation / help / samples that helps be use the new EJB3 Annotations.

I have seen a few forums where they have mentioned that they have
sucessfully demonstrated this capability. Anyone have tried it?

Thanks
Gyanesh


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jan 03, 2005 10:43 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Chech in cvs HibernateExt/metadata
there is a doc/tutorial directory that will help.

_________________
Emmanuel


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

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.