About 1,370,000 results
Open links in new tab
  1. Why does JPA have a @Transient annotation? - Stack Overflow

    Jan 28, 2010 · The transient keyword is a stronger condition than @Transient: If a field uses the transient keyword, that field will not be serialized when the object is converted to a byte …

  2. Why use the `transient` keyword in java? - Stack Overflow

    transient is used to specify which properties of an object will not be saved or serialised. For example, when saving an object to a file, transient specifies which properties or attributes will …

  3. What does the keyword "transient" mean in Java? [duplicate]

    Member variables marked by the java transient keyword are not transferred, they are lost intentionally. Example from there, slightly modified (thanks @pgras): public class Foo …

  4. Why does Java have transient fields? - Stack Overflow

    May 26, 2009 · The transient keyword in Java is used to indicate that a field should not be part of the serialization (which means saved, like to a file) process. From the Java Language …

  5. What are Transient and Volatile Modifiers? - Stack Overflow

    Aug 23, 2010 · The volatile and transient modifiers can be applied to fields of classes 1 irrespective of field type. Apart from that, they are unrelated. Apart from that, they are …

  6. c# - Configuring Dbcontext as Transient - Stack Overflow

    Jan 30, 2017 · By default the DbContext is transient and hence valid for the duration of the request and all services (not only the controller) will receive the same instance of it. If …

  7. java - @JsonIgnore vs @Transient -difference? - Stack Overflow

    Apr 21, 2015 · Note that Jackson does treat @javax.persistence.Transient on fields the same as how it treats @java.beans.Transient on methods -- that is, the same as @JsonIgnore-- if you …

  8. c# - AddTransient, AddScoped and AddSingleton Services …

    Jul 1, 2016 · Transient: In transient, new object instances will be injected in a single request and response. Below is a snapshot image where I displayed GUID values. Scoped: In scoped, the …

  9. java - Serializable and transient - Stack Overflow

    Dec 10, 2014 · The transient keyword can be used to specify that an attribute does not need to be serialised, for instance because it is a derived attribute. See also this reply to a similar …

  10. java - How does marking a field as transient make it possible to ...

    transient doesn't disable serialization altogether; it just marks members that won't be serialized. It's typically used for stuff that would be incorrect or irrelevant when the object is unserialized, …

Refresh