About 123,000 results
Open links in new tab
  1. Mapping a row from a SQL data to a Java object - Stack Overflow

    I have a Java class with instance fields (and matching setter methods) that match the column names of a SQL database table. I would like to elegantly fetch a row from the table (into a ResultSet) and map …

  2. java - JPA Instant/ZonedDateTime Database mapping - Stack Overflow

    Dec 29, 2021 · Mapping Instant and ZonedDateTime to TIMESTAMP but convert them to UTC when serializing, and back to JVM timezone when deserializing. (not ideal, but good enough) I can override …

  3. java - Storing a Map<String,String> using JPA - Stack Overflow

    Aug 25, 2014 · I am wondering if it is possible using annotations to persist the attributes map in the following class using JPA2 public class Example { long id; // .... Map&lt;String, String&gt;

  4. What Java ORM do you prefer, and why? - Stack Overflow

    SimpleORM provides similar functionality to Hibernate by mapping data in a relational database to Java objects in memory. Queries can be specified in terms of Java objects, object identity is aligned with …

  5. How to map oracle dataType to java dataType? - Stack Overflow

    Nov 21, 2021 · how can mapping oracle dataType to java dataType? I tried as below but Not accurate . DatabaseMetaData databaseMetaData = this.getConnection().getMetaData(); ResultSet rs = …

  6. java - Difference between ORM and Object Mapping? - Stack Overflow

    MyBatis can use simple XML or Annotations for configuration and map primitives, Map interfaces and Java POJOs (Plain Old Java Objects) to database records. So my guess is that Object Mapping …

  7. java - Mapping objects in database - Stack Overflow

    Dec 9, 2022 · I am trying to learn hibernate and going through a tutorial i was trying to implement OneToOne mapping. I have a Question and an Answer class/entity. I have mapped an Answer for a …

  8. java - Database mapping library - Stack Overflow

    Oct 3, 2012 · 1 What you're looking for is an ORM (Object-Relational Mapping) library. There's a good discussion of ORM solutions in this post.

  9. How to map database column names to Java class fields using apache ...

    Apr 24, 2015 · I would like to populate a POJO (State.java) from DB using Apache DBUtils library. However, since the names of the Bean properties do not match exactly with DB column names some …

  10. sql - Java Database with Mapping? - Stack Overflow

    Nov 28, 2011 · You need an ORM (Object-Relational Mapping) and Hibernate is the most commonly used, Hibernate can also be used standalone, not only in Java EE environment. The official tutorial …