Questions tagged as 'java'

2
answers

DB Dynamic MongoDB

I'm starting a web project and I'm thinking of using java with mongoDB and Spring data. In this web project, each user would have their own bank. That is, when the user logs in (this would be a shared bank, where it would contain only the login...
asked by 19.06.2014 / 14:49
1
answer

Get system resource inside Jar file (getSystemResource)

I've developed a project where I need to access some configuration files and some images. Within the project I have a folder (resources) in which I have all these resources that I need. The problem is this: After the finished project I created...
asked by 22.06.2014 / 19:41
1
answer

Open several windows of the same application without accumulating icons in the taskbar

I would like to know how I could create java frames, without opening so many windows in the windows taskbar. For example when I go to the menu and click on customer registration, address book, address type register, 3 windows are opened, it i...
asked by 26.07.2016 / 12:57
1
answer

Validate with object annotations within a method

I have a JavaBean with several attributes, and they need to be validated. It has an attribute of type enum, and according to the value of this attribute, the object needs some specific validations, and there are validations that are independent...
asked by 26.07.2016 / 23:21
1
answer

Spinner in Popup

I have a screen where it has a Gridview and a ImageButton . Well, by clicking on this ImageButton I open a PopUp that contains two spinner and a ImageButton . These spinners are populated thro...
asked by 26.08.2014 / 22:16
1
answer

encapsulation of a point in Cartesian space of two dimensions

I created a ponto2d class with the attributes x and y, I created the get and set methods, until ai blz, then created a retângulo class with width and height, I need to know the value of a point in the two dimensional Cartesian spac...
asked by 18.04.2014 / 04:09
1
answer

Restart the requestLocationUpdates () with Sleep

How do I start requestLocationUpdates() with Thread.sleep(); on Android ? My code: public void onLocationChanged(Location loc) { Date d = new Date(); SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy HH:mm:...
asked by 21.04.2014 / 13:55
1
answer

Exception StackOverflowError occurring in @ManyToMany relationship with JPA

I'm having a problem in a @ManyToMany entities relationship. When I try to do a simple query on the entity that contains the @ManyToMany stackOverflow occurs. My rule is simple: My entity ApplicationClientVO can access N WebServiceVO and a We...
asked by 09.06.2014 / 18:40
1
answer

How to intercept only the public methods of a managed bean?

If you have a managed bean (annotation @ManagedBean), how could you intercept only the public methods of this bean? The motivation for this would be as follows, suppose you have a ControllerBean bean that can be accessed from an xhtml page....
asked by 09.06.2014 / 03:44
1
answer

Limit set size with JPA

I'm having trouble finding Google and have not found a solution. I have a note in JPA with a set<> I want to limit the size of objects within set , ie the code below: @OneToMany(mappedBy = "pidAplic", cascade = CascadeT...
asked by 14.04.2014 / 22:11