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

Nullify transient references in Hibernate

I have a scenario where I need to Delete a parent entity and In doing so I need to nullify the references associated with the parent. e.g. I have two tables/entities Person and Address. Person is the parent and Address is the child (One to…
user1679893
  • 19
  • 1
  • 3
0
votes
3 answers

Transient field not null when loading entity second time using HSQLDB

I have an Entity that, simplified, looks like this: @Entity @Table(name = "SOMETABLE") public class SomeEntity { // real code has id and more columns @Column(name = "SOMECOLUMN") private String someColumn; @Transient private…
Magnilex
  • 11,584
  • 9
  • 62
  • 84
0
votes
1 answer

Flex transient dto stop collectionChanged event custom ComboBox

I am having an issue with the collectionChanged event being fired when a transient property of a DTO is changed. I have a custom ComboBox, which has a CheckBox itemRenderer for each row, that stays open till the user moves focus away from it. The…
Mr. Polywhirl
  • 42,981
  • 12
  • 84
  • 132
0
votes
1 answer

Merging deserialized objects with their originals

I am implementing a client server protocol using UDP sockets for a game in java. I am sending user input from the client to the server, where the server processes the input and updates a Level object containing players and other game objects. I am…
Chris
  • 1,163
  • 3
  • 13
  • 22
0
votes
2 answers

Coredata - Using configurations to manage transient entities

I'm trying to use configurations to manage transient entities in core data. First, i have created 2 coredata configurations named "Persistent" and "Transient". Then, i have created the entities and i have associated them with the right…
0
votes
3 answers

why transient variable's state is stored in singleton object?

package p1; import java.io.FileInputStream; import java.io.FileNotFoundException; import java.io.FileOutputStream; import java.io.IOException; import java.io.ObjectInputStream; import java.io.ObjectOutputStream; import…
AmitG
  • 10,365
  • 5
  • 31
  • 52
0
votes
1 answer

Performing an intensive task in the getter of a transient property in Core Data

I have an entity named Group. The Group entity has a transient attribute named displayImage. This displayImage is computed on the fly. The computations involve 2 or more image rotations, scaling. and cropping. Note: the images involved in the…
MiuMiu
  • 1,905
  • 2
  • 19
  • 28
0
votes
0 answers

Using domain classes as both persistent and transient?

I am implementing a trading system, and I want to use the same code for both live trading and backtesting. When doing live trading, I need to persist everything that happens, but when backtesting, I would like to use the same classes and logic but…
greymatter
  • 840
  • 1
  • 10
  • 25
0
votes
1 answer

Why this calculated property in my OpenXava transient view is not working

first to all this new thread is related to this one: Updating certain view programmatically from a JMS listener class Now, additional to this lack of server-push feature, I have other problem with a simple calculated property which I have in the…
HayrolR
  • 761
  • 5
  • 9
0
votes
1 answer

Issues using WordPress transient caching and AJAX json script

I have a WordPress plugin that I am working on that Polls all the major Social Networking sites and returns the social counts ( followers ) for a specific user. This can be quite slow and intensive on the server so I have built the plugin using…
Jason
  • 4,899
  • 12
  • 47
  • 56
0
votes
1 answer

How do I instantiate transient members after an object is read from mongodb

I'm using MongoRepository for saving/retrieving an object in MongoDB. I have an object with properties defined as such: @Document public class ConfigurationItem { String s1; @Transient String s2; } The repository will save/retrieve…
TheZuck
  • 3,513
  • 2
  • 29
  • 36
0
votes
1 answer

Transient Exception using persist() method of JPA.. Doubts in persistence of entities.. Which side to persist?

First time I am using the persist() method in a project. With JPA I am using Hibernate as the provider. The case is pretty simple. I have 2 tables Company - Company_id (PK, a sequence), G_Company_id (Would also be unique) CP_Doc - Chronicle_id…
abhihello123
  • 1,668
  • 1
  • 22
  • 38
0
votes
3 answers

Hibernate not fetching public member

Consider the following code: @Entity @Table(name = "a") public class A implements Serializable { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) @Column(name="id") public int id; @Transient public B b; public B…
Jesse
  • 1,485
  • 1
  • 12
  • 21
0
votes
1 answer

iOS - core data - UITableView - update calculated value - NSFetchedResultsController

Overview I have an iOS project using core data (NSFetchedResultsController) and table view. I have a field called "joingDate". I have a set of labels on the table view cell to represent the data. If the joiningDate is today / tomorrow, then I would…
user1046037
  • 16,755
  • 12
  • 92
  • 138
0
votes
1 answer

In Hibernate JPA; even after I am committing transaction; the transient variables values are intact

I have an entity; which has transient variables. After I commit this entity; I thought that when next time I do any operation on this entity ( without jvm restart like an update on entity) ; those transient values will be reset to null but its not…
Deepak Singhal
  • 10,568
  • 11
  • 59
  • 98
1 2 3
27
28