Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6545337
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 25, 20262026-05-25T11:34:27+00:00 2026-05-25T11:34:27+00:00

I have been fiddling with ormlite on android. It’s early days and so far

  • 0

I have been fiddling with ormlite on android. It’s early days and so far I really like what I have seen.

While reading the manual I noticed the ability to use javax.persistence annotation instead of the default. When trying to define a @ManyToOne relationship I cam a little unstuck. Normally I use a @JoinColumn(name="xxx") to defined the column name with a @ManyToOne, ie. not the @Column(name="xxx"). Am I right, or should I be looking at this a different way.

I had a quick look and thought a few small additions to com.j256.ormlite.misc.JavaxPersistence.java would resolve this issue. Basically the duplicating the code to handle the @Column to instead handle the @JoinColumn (maybe without the “length”).

This also left me wondering is there were any issues with using both the standard ormlite annotations as well as the javax.persistence ones. Questions like:

  • do the standard annotations take precedence?, and
  • can the processing of javax.persistence annotations be disabled?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-25T11:34:27+00:00Added an answer on May 25, 2026 at 11:34 am

    Unfortunately @user928550, the javax.persistence annotations are not completely supported by ORMLite. The limited support for them is defined in the manual:

    http://ormlite.com/docs/jpa

    I’d be happy to improve the support for them if you want to make suggestions about how to proceed. Please use the ORMLite developers mailing list to suggest your additions:

    http://groups.google.com/group/ormlite-dev

    In answer to you specific questions, existence of the @DatabaseField annotation will override any javax.persistence annotation processing and you cannot disable the processing of javax.persistence (unless you specify a @DatabaseField).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have been fiddling a bit with android the last few days. I have
I am just learning C# (have been fiddling with it for about 2 days
I have this, and i've been fiddling around with it for a while but
Have been struggling with Javascript closure for a while trying to wrap brain around
We have been using CruiseControl for quite a while with NUnit and NAnt. For
Have been reading around on IErrorHandler and want to go the config route. so,
I have been fiddling with this for almost an hour and am getting nowhere.
I've been fiddling around with CHESS , which seems like an incredibly useful tool.
I've been fiddling with some ASP.NET MVC3 solution structures and I have settled on
I've been fiddling with WebGL lately, and have gotten a Collada reader working. Problem

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.