# Upgrade @Properties(prefix = "property", allowCast = true) to SDN6

**URL:** <https://community.neo4j.com/t/upgrade-properties-prefix-property-allowcast-true-to-sdn6/38455>\
**Category:** Spring Data Neo4j & Neo4j-OGM\
**Created:** [May 17, 2021, 3:55pm UTC](https://community.neo4j.com/t/upgrade-properties-prefix-property-allowcast-true-to-sdn6/38455 "2021-05-17T15:55:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![myshareit](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/myshareit/32/18307_2.png) [@myshareit](https://community.neo4j.com/u/myshareit)\
**Post date:** [May 17, 2021, 3:55pm UTC](https://community.neo4j.com/t/upgrade-properties-prefix-property-allowcast-true-to-sdn6/38455/1 "2021-05-17T15:55:05Z")

</div>

I'm trying to upgrade my SDN application to SDN 6 and right now don't know how to upgrade the following construction:

```
@Properties(prefix = "property", allowCast = true)
private Map<String, Object> properties;

```

How to define it in SDN 6? Thanks!

---

<div class="post-metadata">

**Author:** ![gerrit.meier](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/gerrit.meier/32/27374_2.png) [@gerrit.meier](https://community.neo4j.com/u/gerrit.meier)\
**Post date:** [May 18, 2021, 4:56am UTC](https://community.neo4j.com/t/upgrade-properties-prefix-property-allowcast-true-to-sdn6/38455/2 "2021-05-18T04:56:27Z")

</div>

X-Post from: [Spring Data Neo4j @Properties annotation - Stack Overflow](https://stackoverflow.com/questions/67555768/spring-data-neo4j-properties-annotation)

You would use the `@CompositeProperty` annotation. This will work with `Map<String/Enum, Object>` .

Here is the link to the documentation with some further information. [Spring Data Neo4j](https://docs.spring.io/spring-data/neo4j/docs/current/reference/html/#custom.conversions.composite-properties)

---

<div class="post-metadata">

**Author:** ![myshareit](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/myshareit/32/18307_2.png) [@myshareit](https://community.neo4j.com/u/myshareit)\
**Post date:** [May 18, 2021, 6:52am UTC](https://community.neo4j.com/t/upgrade-properties-prefix-property-allowcast-true-to-sdn6/38455/3 "2021-05-18T06:52:37Z")

</div>

Thanks for your answer! Unfortunatly, I unable to fully test it right now because blocked with [Migration to SDN 6 - issue with relationship between nodes](https://community.neo4j.com/t/migration-to-sdn-6-issue-with-relationship-between-nodes/38456)

Also, one addtional question regarding `allowCast = true` attribute of `@Properties` annotation. I do not see the same attribute for the `@CompositeProperty`. Do we still need it or `@CompositeProperty` will work out of the box without such attribute? Thanks!
