Skip to content

Tag: jpa

Eclipse JPA Tools: Connect with service name instead of SID

I am trying to generate entities from the database tables using JPA Tools features in eclipse. I am aware that we can use service name and connect using The problem is that we don’t have SID due to some constraints and JPA Tools doesn’t allow me to edit the connection URL. Connection URL is a non-…

BigDecimal, precision and scale

I’m using BigDecimal for my numbers in my application, for example, with JPA. I did a bit of researching about the terms ‘precision’ and ‘scale’ but I don’t understand what are they exactly. Can anyone explain me the meaning of ‘precision’ and ‘scale&#8217…

junit test for stateless ejb + jpa

I would like to write a junit test for my stateless ejb + jpa demo code. I think it is actually not a junit test, it is an integration test. I have a stateless ejb with an injected EntityManager and PostgreSQL database server is used. I use CDI (Spring is not used in my project) and EclipseLink with a persist…

Insert Null Struct using EclipseLink JPA

I have an Oracle table with an SDO_GEOMETRY column and I am trying to use EclipseLink JPA2 2.6.1 for persistence. My entity class uses a JTS Geometry for geometry objects and I have written a AttributeConverter to convert from a SDO_GEOMETRY to a JTS Geometry. This works well and I can read and write the geom…