Posts by raphaRezzi • 313 points
9 posts
-
1
votes1
answer289
viewsQ: One Fragment’s onCreateContextMenu method calls another Fragment’s onContextItemSelected method
I have a Fragmentactivity that calls its Fragments in the shape of tabs (Viewpager). In two of these fragments the methods were implemented onCreateContextMenu and onContextItemSelected. In this…
-
2
votes1
answer724
viewsA: How to map entity with Hibernate to create non-unique constraints?
I ended up mapping in another way and got what I wanted (partially). @Entity //@IdClass(AutenticacaoPK.class) @Table(uniqueConstraints=@UniqueConstraint(columnNames = {"codEmpresa", "codUsuario"}))…
-
4
votes1
answer724
viewsQ: How to map entity with Hibernate to create non-unique constraints?
I’m trying to create an entity with the following mapping: @Entity @IdClass(AutenticacaoPK.class) public class Autenticacao { @Id @OneToOne(cascade = CascadeType.REFRESH) @JoinColumn(name =…
-
1
votes2
answers359
viewsA: How to use @Delete annotation in Vraptor + AJAX?
I was able to make it work. But not by using @Delete. In fact, attribute "_method: 'DELETE'" is a parameter passed to Vraptor (according to what I read). Workaround: Replaces @Delete with @Path in…
-
4
votes2
answers359
viewsQ: How to use @Delete annotation in Vraptor + AJAX?
In my Vraptor project I am trying to delete a record from a list without the page being reloaded. By the book I am following, AJAX is used so that the record removed "suma" without the whole page…
-
1
votes0
answers155
viewsQ: How to replace an "import" statement within an XML schema with the XSD content to be imported?
I have the following XML Schema tag: <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="xmldsig-core-schema20020212.xsd" /> And I’d like to know how to replace that…
-
1
votes2
answers146
viewsQ: How to decrease the response time of an unsuccessful connection when using Ksoap2?
When the server or service (IIS) is off, The web-service response time that there is some connection failure is very long. At this time the application (Android) requests closure due to inactivity.…
-
5
votes1
answer387
viewsQ: How to send/encapsulate a file in a . apk to use in the app installation?
I have a file . xls that would like to encapsulate next to apk so that when installing the app it uses that file to popular a database. How to do?
-
0
votes2
answers231
viewsQ: What annotation is used in Ormlite mapping for Enum as Foreign?
I have the Client class and the Animal Award, where a customer can have 1 or more pets. I would look like this: @DatabaseTable(tableName = "cliente") public class Cliente{ @DatabaseField(generateId…