Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM

2015-02-12 Thread Haswell, Josiah D
[mailto:gunnar.morl...@googlemail.com] On Behalf Of Gunnar Morling Sent: Thursday, February 12, 2015 12:43 AM To: Haswell, Josiah D Cc: hibernate-dev@lists.jboss.org Subject: Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM 2015-02-12 1:37 GMT+01:00 Haswell, Josiah D

Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM

2015-02-12 Thread Gunnar Morling
tion to get it. > See above, you should take all the column values from the Person table (or the Persistable table when working with SINGLE_TABLE). You can get the table name from the given entity key. From the tuple context btw. you can get the columns we actually need, so you don't need to fe

Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM

2015-02-11 Thread Haswell, Josiah D
[mailto:gunnar.morl...@googlemail.com] On Behalf Of Gunnar Morling Sent: Wednesday, February 11, 2015 12:43 AM To: Haswell, Josiah D Cc: hibernate-dev@lists.jboss.org Subject: Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM Hi Josiah, It's great to hear that you are working

Re: [hibernate-dev] Question about substituting IDs in Hibernate OGM

2015-02-11 Thread Gunnar Morling
Hi Josiah, It's great to hear that you are working an a backend for Hibernate OGM! Regarding ids, it should work for you if they are mapped using the IDENTITY strategy: @Id @GeneratedValue(strategy=GenerationType.IDENTITY) Long id; This causes the Hibernate ORM engine to read back t