Questions tagged [transient]

In ORM and OOP , a transient field is generally a field that isn't included in the serialization process. Use this tag for questions related to behavior related to the transient keyword.

414 questions
0
votes
2 answers

hibernate StatelessSession update with many-to-one not working (transient instance)?

When I retrieve a Entity (row) with an intentionally unfetched many-to-one association and then try to update that Entity I get the famous transient instance error: Error updating Object object references an unsaved transient instance - save the…
djmj
  • 5,579
  • 5
  • 54
  • 92
-1
votes
1 answer

How to define Java transient attributes in Enterprise Architect?

Background: I'm using Sparx Enterprise Architect 8.0. When I mark a member of a domain class as transient, the resulting generated code uses the volatile keyword instead of transient. This is correct according to Enterprise Architect Java…
jjmontes
  • 24,679
  • 4
  • 39
  • 51
-1
votes
1 answer

when defining "fluid solid interface" in transient structural, the question mark keeps showing

screenshot here G'day, mates. I met a problem that I couldn't figure out. I built a simple model consisting of a cylinder(solid) and a cuboid(fluid) for simulating Kármán vortex street. And the cylinder is submerged in the fluid, so the entire…
106207436
  • 1
  • 2
-1
votes
2 answers

Dependency injection using both AddSingleton and AddTransient C#

I'm having a huge problem with the configuration/dependency injection of an application. I have a singleton class added through DI with AddSingleton, that has in its constructor a IRequestClient, that is scoped…
-1
votes
1 answer

How to run a python script in ANSYS such that after certain displacement threshold, the force becomes zero?

I have edited a python script based on an answer on another question but it still does not seem to run. I have a force load which causes a displacement. I want that after a certain amount of displacement, the force becomes zero. This is the code…
thebatman
  • 1
  • 2
-1
votes
1 answer

java serialize transient elements

am preparing myselg for some java t and I see something interesting in the java code: in the ArrayList class I can see this : /** * The array buffer into which the elements of the ArrayList are stored. * The capacity of the ArrayList is…
ΦXocę 웃 Пepeúpa ツ
  • 47,427
  • 17
  • 69
  • 97
-2
votes
1 answer

Transient variables without getters in java

If I have transient variables in a base class (implements serializable) and subclass that extends it, I understand subclasses are also automatically serialized, but should the getters still be required in the base object. I made my vars transient…
justme
  • 63
  • 5
-3
votes
2 answers

Is there any relationship between transient & volatile variables and serial version uid?

Actually I want to know about the concept of serialization and in what way that the transient&local variables are related to serialversionuid and how the serialization is actually happening?
-11
votes
2 answers

How to detect audio transients in iOS

OK, let me try and rephrase this: I'm looking for a method, that takes an audio file as an input, and outputs a list of transients (distinctive peak), based upon a given sensitivity. The audio is a recording of a spoken phrase of for example 5…
Sjakelien
  • 2,255
  • 3
  • 25
  • 43
1 2 3
27
28