giuseppe gio

Greenhorn
+ Follow
since Jun 29, 2013
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by giuseppe gio

Ops, sorry, i've made a mistake, it was a DTO representation.
I don't want to use a specific framework, i just want to understand some design principle, and then i'll use framework.
So into DTO class, foreign key it's something like




Now, when i need to do a query that need a join of two or more table, what's the best way to implement classes?

thanks for the answers.
9 years ago
Hi to all, i need some suggestion for a DAO implementation of a database.
First question.
How i represent a foreign key into a dao class? for example, i have this two tables:

book(id, title, author)
author(name, age)

where book(author) is a foreign key on author(name)

Just i need to code foreign key as a String (in this case) like



Or is not a good practice?

Second question.
With dao i can do CRUD operations, but if i need to make a query that join two or more table, how can i do?
9 years ago

Ulf Dittmer wrote:Please BeForthrightWhenCrossPostingToOtherSites: cross-posted at http://stackoverflow.com/questions/19933931/pdfbox-exception-on-fonts



i've crossposted for solve my problem as soon as possible
10 years ago
I've write a simple code for edit content of a form inside a pdf. Everithing works fine (new pdf is created with modified form) but a strange excetpion about fonts were thrown. This is my code:



and this is the exception:

Grave: error while creating a font
java.io.IOException: Cannot create font as /SubType is not set.
at org.apache.pdfbox.pdmodel.font.PDFontFactory.createFont(PDFontFactory.java:88)
at org.apache.pdfbox.pdmodel.PDResources.getFonts(PDResources.java:203)
at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.getFontAndUpdateResources(PDAppearance.java:439)
at org.apache.pdfbox.pdmodel.interactive.form.PDAppearance.setAppearanceValue(PDAppearance.java:268)
at org.apache.pdfbox.pdmodel.interactive.form.PDVariableText.setValue(PDVariableText.java:131)
at prove.Prove.main(Prove.java:37)



line 37 it's where i call setValue method
10 years ago
I have a webservice SOAP hosted on google app engine, and this is link to wsdl file: http://arduino-data-server.appspot.com/FunctionsService.wsdl
Now what i wanna do it's to build the full http request (contains xml soap service request) for use a service. I know there's a library for manage soap request, but i'm not interestet to use it
10 years ago
Hi. It's the first time i develop a web service in java and i need some help. I've write my very first simple web service and tested it on localhost with tomcat7 (using eclipse). Now i would deploy it on web for test it again, but i don't know how to do. Someone could link me some good tutorial or something else?
can you suggest me a hosting site (for free) for keep my webservice online?
thanks in advice.
11 years ago
It' the first time i occours in this CLIENT error when i run a rmi application, and i don't understand why:



The mentioned classes not found, it's part of skeleton classes, resident on server. Server side all skeleton do his job perfectly, but as i can see, no result is send to client and this exception were thrown.
11 years ago