Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How can I use javax.persistence with ORMLite in Android?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Manoel Campos da Silva Filho  
View profile  
 More options Oct 23 2012, 1:56 pm
From: Manoel Campos da Silva Filho <manoelcam...@gmail.com>
Date: Tue, 23 Oct 2012 10:56:06 -0700 (PDT)
Local: Tues, Oct 23 2012 1:56 pm
Subject: How can I use javax.persistence with ORMLite in Android?

Hello, I'm using ORMLite 4.42.

I would like to know about the support to JPA annotations at Android 2.3.
I searched at the forum but I didn't find aswers.
I see that the JPA support is not complete.
I imported the ormlite-core-4.42.jar and ormlite-android-4.42.jar
at my Android project but I can't use the javax.persistence annotations.
The javax.persistence package isn't available.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manoel Campos da Silva Filho  
View profile  
 More options Oct 31 2012, 11:25 am
From: Manoel Campos da Silva Filho <manoelcam...@gmail.com>
Date: Wed, 31 Oct 2012 08:25:10 -0700 (PDT)
Local: Wed, Oct 31 2012 11:25 am
Subject: Re: How can I use javax.persistence with ORMLite in Android?

Did someone already used JPA with ORMLite at Android?

Em terça-feira, 23 de outubro de 2012 14h56min06s UTC-3, Manoel Campos da
Silva Filho escreveu:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Lauri Ampuja  
View profile  
 More options Nov 6 2012, 2:41 pm
From: Lauri Ampuja <lauri.amp...@gmail.com>
Date: Tue, 6 Nov 2012 11:41:37 -0800 (PST)
Local: Tues, Nov 6 2012 2:41 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?

I have same question... seems like not so many... in whole internet...

On Wednesday, 31 October 2012 17:25:10 UTC+2, Manoel Campos da Silva Filho
wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Gray Watson  
View profile  
 More options Nov 6 2012, 3:10 pm
From: Gray Watson <256....@gmail.com>
Date: Tue, 6 Nov 2012 15:10:13 -0500
Local: Tues, Nov 6 2012 3:10 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?
On Oct 23, 2012, at 1:56 PM, Manoel Campos da Silva Filho wrote:

> I would like to know about the support to JPA annotations at Android 2.3.
> I searched at the forum but I didn't find aswers.
> I see that the JPA support is not complete.

Right.

> I imported the ormlite-core-4.42.jar and ormlite-android-4.42.jar
> at my Android project but I can't use the javax.persistence annotations.
> The javax.persistence package isn't available.

So ORMLite has limited support for the JPA annotations.  I would be happy to improve the support with feedback from people.

That said, it does _not_ provide the javax.persistence classes.  The JRE is supposed to do that.  If Android does not have those classes then I guess you are going to have to provide them yourself.  I don't have any plans of adding them to ORMLite if that is the question.

If that _isn't_ the question, then please add more details.

thanks,
gray


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Manoel Campos da Silva Filho  
View profile  
 More options Nov 6 2012, 3:28 pm
From: Manoel Campos da Silva Filho <manoelcam...@gmail.com>
Date: Tue, 6 Nov 2012 17:28:19 -0300
Local: Tues, Nov 6 2012 3:28 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?

Thank you Gray.
That is the question.
So, Android 2.3 doesn't provide JPA annotation classes.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
HOUSSEM ZAIER  
View profile  
 More options Nov 6 2012, 3:46 pm
From: HOUSSEM ZAIER <houssem.za...@gmail.com>
Date: Tue, 6 Nov 2012 21:46:20 +0100
Local: Tues, Nov 6 2012 3:46 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?

Hi there,
 I've worked on Android 2.1 and I couldn't integrate JPA annotation with
ORMLite . I couln't get an error on compiling as I remember  but the IDE
(ECLYPSE) blocks ! it took 700 MB RAM shown at  the memory manager of
windows !
Does anyone has used it with any other Android version?
peace.

2012/11/6 Manoel Campos da Silva Filho <manoelcam...@gmail.com>

--
*Zaier Houssem*
*Ingénieur développeur **web/**mobile   *
*           Skype: houssemzaier
            Tel:  98820145*

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave  
View profile  
 More options Dec 19 2012, 12:00 pm
From: Dave <dave.mahabiers...@hotmail.com>
Date: Wed, 19 Dec 2012 09:00:21 -0800 (PST)
Local: Wed, Dec 19 2012 12:00 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?

Hi,

you can get an implementation of JSR-317 JPA 2.0 from (use maven/gradle/sbt
for remaining dependencies)
http://mvnrepository.com/artifact/org.hibernate.javax.persistence/hib...
(101 kB)
or
http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-...
(118 kB)
It doesn't matter which one you take. The apk file size is eventually the
same

If you use proguard you need to keep the JPA annotations as well.
Add:

> -keep class javax.persistence.* {
> *;
> }

to the configuration of proguard
Otherwise you get in runtime:

java.lang.IllegalArgumentException: No fields have a DatabaseField

> annotation

Apk file size is about 15kB bigger for my app with JPA.

Op dinsdag 23 oktober 2012 19:56:06 UTC+2 schreef Manoel Campos da Silva
Filho het volgende:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Dave  
View profile  
 More options Dec 19 2012, 1:56 pm
From: Dave <dave.mahabiers...@hotmail.com>
Date: Wed, 19 Dec 2012 10:56:58 -0800 (PST)
Local: Wed, Dec 19 2012 1:56 pm
Subject: Re: How can I use javax.persistence with ORMLite in Android?

Op woensdag 19 december 2012 18:00:21 UTC+1 schreef Dave het volgende:

> Hi,

> you can get an implementation of JSR-317 JPA 2.0 from (use
> maven/gradle/sbt for remaining dependencies)

> http://mvnrepository.com/artifact/org.hibernate.javax.persistence/hib... kB)
> or

> http://mvnrepository.com/artifact/org.apache.geronimo.specs/geronimo-... kB)
> It doesn't matter which one you take. The apk file size is eventually the
> same

Maybe the Apache license is better but I am not a lawyer.

Geronimo JPA
Apache License Version 2.0, January 2004
http://www.apache.org/licenses/LICENSE-2.0.html

Hibernate JPA
Eclipse Distribution License - v 1.0
http://www.eclipse.org/org/documents/edl-v10.php


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »