uCosminexus Application Server, EJB Container Functionality Guide
![[Contents]](FIGURE/CONTENT.GIF)
![[Glossary]](FIGURE/GLOSS.GIF)
![[Index]](FIGURE/INDEX.GIF)
![[Back]](FIGURE/FRONT.GIF)
2.4.3 Precautions for using CMP
This section describes the precautions for using CMP in the EJB container of Application Server.
- When using a fixed-length string SQL type in the CMP field
When using a fixed-length string SQL type (CHAR type of HiRDB or Oracle), the number of characters that are less than the required number of digits might be filled up with spaces when they are saved in the database. Therefore, the spaces might be added at the end of the data during the data creation. Pay proper attention when using this type.
- When using a fixed-length string SQL type in the primary key
When using a fixed-length string SQL type (CHAR type of HiRDB or Oracle) in a key, the number of characters that are less than the required number of digits will be filled up with spaces when they are saved in the database. Therefore, the value might differ from the data during the data creation, and the target Entity Bean might not be acquired. Pay proper attention when using this type.
- Support when an exception occurs because of the remove method
If an exception occurs while the remove method is running, data is retained on the database. Delete the data manually.
All Rights Reserved. Copyright (C) 2013, Hitachi, Ltd.