-->
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.  [ 5 posts ] 
Author Message
 Post subject: Can I use Java type Long for Oracle Type Number?
PostPosted: Wed Sep 14, 2005 6:39 am 
Regular
Regular

Joined: Sat Sep 03, 2005 9:07 am
Posts: 87
Location: Graz, AUSTRIA
I created my mapping files with Exadel Reverse Enginnering.
I use an Oracle DB and I use the Oracle Type Number for my Primary Keys. Now in the mapping files, an BigInteger is used for the Oracle Number Type.
Can there occur any Problem, when I change the BigInteger into Long.
Is it perhaps a Problem, when I want to save Data to the Database or does Hibernate convert the Java Type Long to the Oracle Type Number correctly?

Thanks for help!




Hibernate version:
3.0.5


Top
 Profile  
 
 Post subject: Mapping Files: BigInteger für Oracle Type Number - Ändern?
PostPosted: Wed Sep 14, 2005 6:44 am 
Regular
Regular

Joined: Sat Sep 03, 2005 9:07 am
Posts: 87
Location: Graz, AUSTRIA
Oh hab übersehen, dass ich eh im deutschen Forum bin...


Also ich habe folgendes Problem.

Verwende für die Erstellung von Mapping Files das Exadel Studio mit Reverse Engineering. Dies funktioniert auch alles super.
Als Datenbank verwende ich Oracle 9i. Meine Primary Keys dort sind vom Type Number.
Nun erstellt mir Hibernate in the Mapping Files für den Type Number Columns mit dem Type BigInteger (so stehts auch in der Hibernate Docu)
Ich will allerdings nicht mit BigInteger arbeiten.
Daher meine Frage. Können Probleme auftreten, wenn ich nun die BigInteger in Java Type Long ausbessere (insbesondere beim Insert in die Datenbank)
Oder würdet ihr eher davon abraten, dies umzuändern?


Danke für eure Hilfe!


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 6:51 am 
Pro
Pro

Joined: Fri Sep 02, 2005 4:21 am
Posts: 206
Location: Vienna
Well - ich meine natürlich tja ;-) - das machen wir schon die ganze Zeit so, ohne bisher Problem gehabt zu haben.

Ich wüsste nicht, dass davon abzuraten ist (von BigInteger aber sehr wohl).

Erik


Top
 Profile  
 
 Post subject:
PostPosted: Wed Sep 14, 2005 8:10 am 
Regular
Regular

Joined: Sat Sep 03, 2005 9:07 am
Posts: 87
Location: Graz, AUSTRIA
Ok, danke, hab ich gerade gemacht, und funktioniert!

Wieso verwendet Hibernate überhaupt diesen BigInteger?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 26, 2005 4:34 pm 
What anonymity levels of HTTP proxy servers exist?
1. Transparent - these proxies are not anonymous. They don't hide IP-address of a client and let a web server know that you are surfing through a proxy server. The task of such proxies, as a rule, is information caching and/or support of Internet access for several computers via single connection. Such proxies are not applicable for security and privacy while surfing on net. You can use them only for network speed improvement.
2. Anonymous - these proxies don't show your real IP but change the request fields so it is very easy to detect that you are using proxy.
3. High Anonymous - these proxy servers do not pass an IP-address of a client and don't send any variables indicating that you are using proxy server to host and look like real browser.

http://www.socksproxylist.com


Top
  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 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.