Research
Security News
Malicious npm Package Targets Solana Developers and Hijacks Funds
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
org.jnosql.artemis:artemis-configuration
Advanced tools
Eclipse JNoSQL Mapping, Artemis API, configuration reader
Per https://bugs.eclipse.org/bugs/show_bug.cgi?id=544301 This repo has been archived.
Eclipse JNoSQL Artemis is a flexible and extensible OxM to connect NoSQL databases. It brings an easy interface to support key-value, column family, document oriented and graph databases using as base Diana in CDI based.
The API's focus is on simplicity and ease of use. Developers should only have to know a minimal set of artifacts to work with the solution. The API is built on latest Java 8 features and therefore fit perfectly with the functional features of Java 8.
The project has five modules:
The graph API is an extension because the communication layer to the graph is Apache TinkerPop.
The Eclipse JNoSQL Artemis Core is the commons project in the mapping project. It has the commons annotations.
@Entity
: Specifies that the class is an entity. This annotation is applied to the entity class.@Column
: Specifies a mapped column for a persistent property or field.@Id
: Defines the field is the key of the Entity@Embeddable
:Defines a class whose instances are stored as an intrinsic part of an owning entity and share the identity of the entity.@MappedSuperclass
: Designates a class whose mapping information is applied to the entities that inherit from it. A mapped superclass has no separate table defined for it.@Convert
This annotation enables the converter resource.E.g.:
@Entity
public class Person {
@Id
private long id;
@Column
private String name;
@Column
private int age;
@Column
private List<String> phones;
}
public class MoneyConverter implements AttributeConverter<Money, String>{
@Override
public String convertToDatabaseColumn(Money attribute) {
return attribute.toString();
}
@Override
public Money convertToEntityAttribute(String dbData) {
return Money.parse(dbData);
}
}
@Entity
public class Worker {
@Column
private String name;
@Column
private Job job;
@Column("money")
@Convert(MoneyConverter.class)//converts to String on the database
private Money salary;
}
Expresses a dependency to a configuration and its associated persistence unit.
@ConfigurationUnit
private ColumnFamilyManagerFactory<DatabaseImplementation> factory;
@ConfigurationUnit(fileName = "column.json", name = "name")
private ColumnFamilyManagerFactory<?> factoryB;
The database qualifier used on Eclipse JNoSQL Artemis such as defines which interpreter will be used on Repository.
public interface PersonRepository extends Repository<Person, Long> {
}
@Inject
@Database(value = DatabaseType.COLUMN)
private PersonRepository repository;
@Inject
@Database(value = DatabaseType.DOCUMENT)
private PersonRepository repository;
@Inject
@Database(value = DatabaseType.KEY_VALUE)
private PersonRepository repository;
FAQs
Eclipse JNoSQL Mapping, Artemis API, configuration reader
We found that org.jnosql.artemis:artemis-configuration demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
A malicious npm package targets Solana developers, rerouting funds in 2% of transactions to a hardcoded address.
Security News
Research
Socket researchers have discovered malicious npm packages targeting crypto developers, stealing credentials and wallet data using spyware delivered through typosquats of popular cryptographic libraries.
Security News
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.