Anyone used Hibernate to access a DB in a pure java app (not a web application)? What was your experience like, did it take long to set up and get going?
An Android Java project placed in a git repository and built in an Android tree in /packages/apps needs to have the project files located at the root of the git repository.
This is problematic for creating a complementary Test project, which should ideally be included in the same git repository so commits are atomic for both code and tests. Eclipse gets very unhappy if you include the Test project as a subdirectory.
Is there an appropriate approach for dealing with this other than creating a second repository?
I have a java.io.Reader as the return type of my method. But i have Object type of an instance which i get from Database. So how can I convert this to Reader type and return?
need help
thanks.
I want to have the text say one thing, but have the value say another
Text Key
But it only takes a string for adding items.
How do Java programmers typically store text/id pairs in comboboxes
I have a class Client.java in two different jars jar1 & jar2
Now at run time i want to decide which Client.class loaded like
if (country==india){
// load Client class of jar1
) else{
load client class from jar2
}
can i do that...
This is my problem, I have to use a big SP, and there is no time to rewrite in java.
So I'm using Hibernate criteria and I don't know if i can call it. Thanks to all.
We're getting this random warning from JBoss.. any idea why?
It happens at random times when there are no active threads. Everything works when any processing resumes.
13:49:31,764 WARN [JBossManagedConnectionPool] [ ] Unable to fill pool
org.jboss.resource.JBossResourceException: Could not create connection; - nested
throwable: (java.sql.SQLException: Listener ref
used the connection with the following error:
ORA-12516, TNS:listener could not find available handler with matching protocol stack
The Connection descriptor used by the client was:
//localhost:1521/orcl
Has anyone been able to get Oracle Forms running JInitator to loan in Internet Explorer 8 yet? I have tried removing all add-ons, various version of Java, add the domain to the trusted sites using wildcards, and using compatibility mode to no avail. I am looking to get our Oracle guys to kick there Internet Explorer 6 habit. This is related to Oracle E-Business.
Hello
Does anyone know if there's a method in Joda Time or Java itself which takes either an int or a String as an argument, e.g. 4 or "4" and gives the name of the month back in short format, i.e. JAN for January?
I suppose long month names can be truncated and converted to upper case.
Thanks
Mr Morgan.
hi,
I'm trying to access owl file using jsp.I've successfully load the owl file and quering that using SPARQL.But still I couldn't success with JSP.
I'm always getting error "java.lang.ClassNotFoundException: com.hp.hpl.jena.util.FileManager
"
help me!
Thank in advance!
HI,
I need to know how to set class path for the client tag
under web service of build.xml in java.
I have to add the log4j.properties file to the client jar.
Thanks
Abhi
hello all.
I have an array:
int test[]={10212,10202,11000,11000,11010};
I want to split the inetger values to individual digits and place them in a new array as individual elements such that my array now is:
int test2[]={1,0,2,1,2,1,0,2,0,2,1,1,0,0,0,1,1,0,0,0,1,1,0,1,0};
How would i go about doing that? I'm doing this in java.
Thank you.
Hi,
there is a poker-system in java, that uses Collections.shuffle() on all available cards before the cards are dealt.
So a collection of 52 cards 2-9, J, Q, K, A in 4 types.
After that we Collections.shuffle().
The problem is, that it seems (until now we didn't have big statistic, it's possible that we only see a lot of statistic inferences), that the algorithm is VERY unclearly.
So, is Collections.shuffle() okay for a poker algorithm?
Hi!
Is it possible to set 'clipping bounds' in JOGL? Like in Java/Swing i would like to set clipping bounds and all drawing/rendering outside those bounds would be ignored.
Hi,
Is it possible to calculate the bounds of a htmlized String in Java Swing?
I tried using the BasicHtml.createHTMLView, but kept getting the same prefSpan; irrespective of the component font.
Regards,
Pavan
How could I write a simple program using OpenType tables in order to dynamically render text?
please answer in :
assembly , C , C++ , C# , java or Python (and a little WPF:-)
or introduce libraries of them.
comments and answers about text rendering system of common Operating Systems, or designing text engines compatible with unicode 5.02 protocol are welcomed.
I´m developing a Java solution for manage an iTunes Library (ITL file). The ITL format is a propietary one.
I'm looking for an implementation or a documentation about ITL format but Google can't find anything useful.
Does anyone have experience about that? Where to find more information?
Thanks in advance.
Hi,
I want to download you tube videos programatically (using Java). How can i convert you tube video link to a downloadable URL.
Browser plays youtube videos with following code.
I tried downloading from URL http://www.youtube.com/v/OdAE3cWlmHw
but it is not returning video bytes.
Thanks
Lalit
Hi i am trying to login site with request, using username and password , i can succesfully login the user than i want to parse some html and send it to database ,what it return is activex object that i can not do anything(by the way i am using java to do that) ,in order to bypasss the active x object what is your solution?
1-First come to my mind i can write c# application that using internex explorer dll than login user, it parse html and send it to database than i can use data in database
Dear all,
I am new to JPA, I used to used prepared statement in JDBC. Is there alternative to be used within JPA ? as there is a query which I call frequently
see this for info about prepared statment http://java.sun.com/docs/books/tutorial/jdbc/basics/prepared.html
thanks in advance,,,
How can I see in Java if an Object is an array without using reflection?
And how can I iterate through all items without using reflection?
I use Google GWT so I am not allowed to use reflection :(
I would love to implement the following methods without using refelection:
private boolean isArray(final Object obj) {
??..
}
private String toString(final Object arrayObject) {
??..
}
BTW: neither do I want to use Javascript such that I can use it in non-GWT environments
Ed
Hi,
I have been working in Java for the last 6 months and have been using Hash Maps
What is the basic idea of a Hash Map ? I am using it as it easy for me to store so much data with direct key references rather than having to iterate through an arraylist ?
Where is the power of Hash Map seen ? What is the scientific idea behind this data structure ?
I have a xml document. I know the index where i need to insert the new node. The index that i have is the position considering only the text nodes and ignoring the element tags. Is there a java api to seek the index in a xml knowing the position relative to the text nodes alone and insert a new node in that position?