From a82a07719d3df95ea6b7a569b9ffd854e12d2554 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Thu, 22 Jul 2010 14:30:45 +0200 Subject: Rename insert and update to persist and store in traits --- odb/database.txx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'odb/database.txx') diff --git a/odb/database.txx b/odb/database.txx index 12edc85..402fc0b 100644 --- a/odb/database.txx +++ b/odb/database.txx @@ -20,7 +20,7 @@ namespace odb if (!transaction::has_current ()) throw not_in_transaction (); - traits::insert (*this, obj); + traits::persist (*this, obj); return traits::id (obj); } @@ -73,7 +73,7 @@ namespace odb if (!transaction::has_current ()) throw not_in_transaction (); - object_traits::update (*this, obj); + object_traits::store (*this, obj); } template -- cgit v1.1