Posts by JoeyRA • 306 points
5 posts
-
3
votes2
answers4196
viewsA: Get list of objects with JPA and Hibernate
You should not use, in HQL, the name of your table but the name of the class. Try this: Query query = manager.createQuery("FROM Pessoa"); If you want to know more about HQL take a look here: Chapter…
-
1
votes1
answer1545
viewsA: When I start my android project in eclipse the solution comes with errors
Follow the promptings here Support Library Setup and add the Libraries concerning the v7-appcompat. Follow the steps to download Libraries, if you have not already done so, then follow the…
-
1
votes2
answers797
viewsA: Recover Data from a List View
You can implement a interface that makes a communication between your adapter and another class that wishes. Create a interface: public interface MyButtonListClickListener { public void…
-
1
votes2
answers443
viewsA: Doubt about android using classes
If you use this method only in Activities you can create a GenericActivity extends Activity and extend that your classes of it, thus the method created (public or protected) can always be accessed…
-
3
votes2
answers1170
viewsA: Why does the Gravity attribute of the Linearlayout.Layoutparams object not work like the View setGravity() method?
Why does this happen? gravity of the object LinearLayout.LayoutParams and setGravity of View sane different atribites? What is the difference between the two approaches? Because in class…