Results 1 to 6 of 6
  1. #1
    nutzu2011 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Java repository implementation

    I have 3 classes:Category,Question,Answer(one category has many questions ,one question has many answer.Question has a direct relation to a list of answers).I use oracle database.If i have Question q=repo.getQuestion(int byID) how it's best to implement this repository for modify the q then only type conn.commit(); (=>saves q's members) ?
    Last edited by nutzu2011; 07-10-2013 at 10:40 PM.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    4,038
    Rep Power
    10

    Default Re: Java repository implementation

    Please see the link in my signature on asking questions the smart way, then try again.
    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    nutzu2011 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Java repository implementation

    Quote Originally Posted by KevinWorkman View Post
    Please see the link in my signature on asking questions the smart way, then try again.
    OK,I think it's the wrong forum,but i don't want the implementation of the repository with Hiberante or another ORM.How to achieve this?

  4. #4
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Java repository implementation

    Quote Originally Posted by nutzu2011 View Post
    OK,I think it's the wrong forum,but i don't want the implementation of the repository with Hiberante or another ORM.How to achieve this?
    You write the code to do it. Or you use JPA and make your life a whole lot easier.

  5. #5
    nutzu2011 is offline Member
    Join Date
    Apr 2012
    Posts
    4
    Rep Power
    0

    Default Re: Java repository implementation

    Ok,but there is an example about repository(in java) without JPA or Hibernate?

  6. #6
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    4,354
    Rep Power
    6

    Default Re: Java repository implementation

    If you don't want to use an ORM then you want to use plain old SQL, so look for JDBC examples. And really, read the earlier mentioned article.

    How To Ask Questions The Smart Way

Similar Threads

  1. Up to date smartgwt in Maven Repository?
    By Cornelius in forum Apache Maven
    Replies: 0
    Last Post: 01-21-2013, 12:01 PM
  2. JSR 173 content repository
    By eren_kaygusuz@hotmail.com in forum Advanced Java
    Replies: 0
    Last Post: 03-08-2012, 05:00 PM
  3. Mylyn-Mantis Repository Con... 3.8.0
    By java software in forum Java Software
    Replies: 0
    Last Post: 12-19-2011, 12:09 PM
  4. Version tagging CVS repository files from Java or ANT
    By Kjartan in forum Advanced Java
    Replies: 5
    Last Post: 04-04-2011, 06:05 AM
  5. Creating my own plug-in repository
    By mark.bramnik in forum Eclipse
    Replies: 0
    Last Post: 07-05-2009, 01:06 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •