CCNode composite CCSprite and want to use CCSpriteBatchNode to batch the CCNode

Here is my problem:
i have a BaseEntity Class inherited from CCNode, and composite a CCSprite member. for example i have a Bullet Class inherited from BaseEntity, and i want to batch all of the bullet class, how can i do that with CCSpriteBatchNode? Because the CCSpriteBatchNode only accept CCSprite as child. What can i do about it? Thanks!

is not there another solution for your problem?
think it about it again and let me know if you persist this solution is the best

i can’t think of another solution.
when i composite the CCSprite.like this:
Class Entity : public CCNode {
public:
// initialize ….

// getter
CCSprite* getSprite() {
return _sprite;
}
protected:
CCSprite _sprite;
};
And i want to batch this entity:
Entity
entity = Entity::create();
CCSpriteBatchNode *batch = ….
batch->addChild(entity->getSprite());

it occur an error!

@
void CCSpriteBatchNode::addChild(CCNode child, int zOrder, int tag)
{
CCAssert;
CCAssert != NULL, “CCSpriteBatchNode only supports CCSprites as children”);
CCSprite
pSprite = (CCSprite*)(child);
// check CCSprite is using the same texture id
CCAssert(pSprite->getTexture()>getName == m_pobTextureAtlas>getTexture()->getName(), “CCSprite is not using the same texture id”);
CCNode::addChild(child, zOrder, tag);

appendChild(pSprite);
}
@
They(batch and entity->getSprite()) must have the same texture

could you share the error code ?