---
name: "KiokuDB::TypeMap::Entry::Naive"
section: "3pm"
platform: "linux"
package: "libkiokudb-perl"
version: "0.57-3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/KiokuDB::TypeMap::Entry::Naive"
---

# KiokuDB::TypeMap::Entry::Naive(3pm)

A typemap entry for "simple" objects

## NAME

KiokuDB::TypeMap::Entry::Naive - A typemap entry for "simple" objects

## VERSION

version 0.57

## SYNOPSIS

```
    KiokuDB::TypeMap->new(
        entires => {
            'My::Class' => KiokuDB::TypeMap::Entry::Naive->new,
        },
    );
```

## DESCRIPTION

This typemap entry is suitable for plain objects that can be stored by simply walking them recursively.

Most objects fall into this category, but there are notable exceptions:

- XS based objects, using a pointer as a number

  When being deserialized the pointer value will no longer be valid, causing segfaults.

- Inside out objects

  Since the referent is really a flyweight object with no data, the object will be missing its attributes and a suitable typemap entry is required instead.

  This applies to any object interacting with a global state of some sort.

- Objects with magic

  Perl SV level magic is not retained, apart from tied values.

## ATTRIBUTES

- intrinsic

  If true the object will be collapsed without an ID as part of its parent.

## AUTHOR

Yuval Kogman \<nothingmuch@woobling.org\>

## COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Yuval Kogman, Infinity Interactive.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
