Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
James Howe
@OrangeDog
I'm guessing there isn't one, and I'll have to do it myself
Steve Ebersole
@sebersole
@ColumnTransformer
but to be fair, your question is completely unclear
so i'll just continue to guess ;)
James Howe
@OrangeDog
As far as I can tell, that will apply the same thing to both SELECT and WHERE clauses
I don't know what's so unclear about the question
Steve Ebersole
@sebersole
then you misunderstand it.
i well, no i take that back.
and its unclear also because you have not said what it is you are actually trying to do
its unclear because the original question implied that you were not selecting it
James Howe
@OrangeDog
if I wasn't selecting it I wouldn't care about how it appears in select clauses
what I'm trying to achieve is very similar to a case-preserving but -insensitive attribute
Steve Ebersole
@sebersole
again your question was unclear about that
feel free to disregard someone telling you youre question was unclear and continue asking unclear questions. no skin off my teeth
have a good day
James Howe
@OrangeDog
usually the way you clarify something is by asking what's unclear about it...
"it's unclear" is a completely useless statement
Steve Ebersole
@sebersole
well considering i read that you did not want it in the select, it seems pretty obvious what was unclear no>
ok, i'll just ignore you then
James Howe
@OrangeDog
and I clarified that I did...
Harikesh Pallantla
@harikesh409
hi all, can anyone tell me how to send record type as input in store procedure calls with hibernate
James Howe
@OrangeDog
Is there a dialect available somewhere for the base spatial types in postgres (point, libne, box, poly) not the postgis types?
As far as I can see, hibernate-spatial only has postgis, not postgres
Mikhail Fomichev
@MFomichev
Hello, guys!
I have faced the problem, when cascade persist / merge happens by when transaction commit (without explicit persist parent entity) persist and merge events would not fire. Is there any way to fix it?
NicklasWallgren
@NicklasWallgren

Are there any proper ways to retrieve the actual underlying exception cause, instead of the org.hibernate.AssertionFailure "null id in <domain> entry (don't flush the Session after an exception occurs)"?

In my particular case I got org.hibernate.AssertionFailure, and not the actual cause com.mysql.cj.jdbc.exceptions.MysqlDataTruncation of the issue.

The session was flushed by spring data after calling a find method on the repository.

It was really hard to debug.
Steve Ebersole
@sebersole
seems like a Spring question, no?
Kiran S
@kirans9731
Hello All,
how to call a stored procedure using jpa/hibernate that has parameters with default values. So the stored procedure I am working with has 10 parameters with only the first 2 WITHOUT default values.
em.createStoredProcedureQuery("my_proc")
      .registerStoredProcedureParameter // register all 10 parameters
     .setParameter // only for the first 2 parameters
    .execute()
When I run this, I get an error Value not set for parameter number <>. After setting param_null_passing to true, the stored procedure call fails because the value null was passed, overriding the default values
the db is sql server
Steve Ebersole
@sebersole
@kirans9731 you'd definitely want to not pass nulls - in other words you'd want that setting to be false. beyond that, I cannot remember but I think you only want to register parameters you are actually passing values for or that are output parameters
DoraRajappan
@DoraRajappan
which is good opensource database that can be used in production environment that supports hibernate? IM using h2 for development.
Steve Ebersole
@sebersole
@DoraRajappan there are lots of good open source databases out there. like a lot :)
DoraRajappan
@DoraRajappan
please name a few
Steve Ebersole
@sebersole
well there is mysql (which is well over 20 years old), postgres (also VERY old), mariadb, coachroachdb, derby, ...
I could also do a "let me google that for you" if you wish ;)
James Howe
@OrangeDog
This person is just constantly asking basic off-topic questions with no research across gitter
Steve Ebersole
@sebersole
@OrangeDog who are you speaking of? Dora?
DoraRajappan
@DoraRajappan
sorry
Alif Bhaskoro
@xpanda17
Hi, I'm wondering whether hibernate-reactive can be used with project reactor? Or is it exclusive for quarkus and vert.x?
Larel Bruton
@larelb
Hi all,
Larel Bruton
@larelb

@ManyToOne()
@JoinColumn(name = “eo_id")
public EntityOne eo;

//I have some boilerplate code here, but I don’t care about this side
@JsonIgnore
@SortNatural
@OrderBy("id ASC")
@OneToMany(mappedBy = "ap", fetch = FetchType.EAGER, cascade = CascadeType.MERGE)
public Set<EntityTwo> ets = new TreeSet<>();

I am detaching an eo entity and merging it in with another entity. I’m getting org.hibernate.TransientPropertyValueException: object references an unsaved transient instance - save the transient instance before flushing. It appears that Hibernate is trying to save EntityTwo with the detached entity.

Any ideas?

Steve Ebersole
@sebersole
You're going to have to show us some simplified code of what you are trying.
e.g.
Larel Bruton
@larelb
@sebersole How can I find out the sequence of the sql statements?
That Hibernate is executiing
executing*
James Howe
@OrangeDog
Set the org.hibernate.SQL logger to DEBUG
Steve Ebersole
@sebersole
^^