Skip Headers
Oracle® Containers for J2EE Enterprise JavaBeans Developer's Guide
10g (10.1.3.5.0)

Part Number E13981-01
Go to Documentation Home
Home
Go to Book List
Book List
Go to Table of Contents
Contents
Go to Index
Index
Go to Feedback page
Contact Us

Go to previous page
Previous
Go to next page
Next
View PDF

Configuring a Serialized Object Mapping

Use a serialized object mapping to specify that a persistent property should be persisted as a serialized stream of bytes.

You define a serialized object at one of the property (getter or setter method) or field level of your entity.

For more information, see the following:

Using Annotations

Example 7-19 shows how to use the @Serialized annotation to specify a serialized object mapping for field picture.

Example 7-19 @Serialized

@Serialized(fetch=EAGER)
@Column(name="PICTURE")
public Byte[] getPicture() {
    return picture;
}